netlify.toml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. [build.environment]
  2. NODE_VERSION = "14"
  3. NPM_FLAGS = "--prefix=/dev/null"
  4. [build]
  5. base = "/"
  6. publish = "packages/hoppscotch-web/dist"
  7. command = "npx pnpm i --store=node_modules/.pnpm-store && npx pnpm run generate"
  8. [[headers]]
  9. for = "/*"
  10. [headers.values]
  11. X-Frame-Options = "SAMEORIGIN"
  12. X-XSS-Protection = "1; mode=block"
  13. [[redirects]]
  14. from = "/discord"
  15. to = "https://discord.gg/GAMWxmR"
  16. status = 301
  17. force = true
  18. [[redirects]]
  19. from = "/telegram"
  20. to = "https://t.me/hoppscotch"
  21. status = 301
  22. force = true
  23. [[redirects]]
  24. from = "/beta"
  25. to = "https://forms.gle/XPYDMp8m6JHNWcYp9"
  26. status = 301
  27. force = true
  28. [[redirects]]
  29. from = "/careers"
  30. to = "https://company.hoppscotch.io/careers"
  31. status = 301
  32. force = true
  33. [[redirects]]
  34. from = "/newsletter"
  35. to = "http://eepurl.com/hy0eWH"
  36. status = 301
  37. force = true
  38. [[redirects]]
  39. from = "/twitter"
  40. to = "https://twitter.com/hoppscotch_io"
  41. status = 301
  42. force = true
  43. [[redirects]]
  44. from = "/github"
  45. to = "https://github.com/hoppscotch/hoppscotch"
  46. status = 301
  47. force = true
  48. [[redirects]]
  49. from = "/announcements"
  50. to = "https://company.hoppscotch.io/announcements"
  51. status = 301
  52. force = true
  53. [[redirects]]
  54. from = "/robots.txt"
  55. to = "/robots.txt"
  56. status = 200
  57. [[redirects]]
  58. from = "/sitemap.xml"
  59. to = "/sitemap.xml"
  60. status = 200
  61. [[redirects]]
  62. from = "/*"
  63. to = "/index.html"
  64. status = 200