netlify.toml 677 B

12345678910111213141516171819202122232425262728
  1. # Sentry uses netlify to deploy pull-request previews of the frontend which
  2. # talk to the production API.
  3. #
  4. # This is an EXPERIMENTAL developer experience, there are still various pages
  5. # that are served through django and have no SPA equivalent views.
  6. [build]
  7. publish = "src/sentry/static/sentry/dist"
  8. command = "yarn webpack"
  9. [[redirects]]
  10. from = "/_assets/*"
  11. to = "/:splat"
  12. status = 200
  13. [[redirects]]
  14. from = "/api/*"
  15. to = "https://sentry.io/api/:splat"
  16. status = 200
  17. force = true
  18. # Pass referer as sentry.io to avoid CSRF validation errors.
  19. headers = {Referer = "https://sentry.io/"}
  20. [[redirects]]
  21. from = "/*"
  22. to = "/index.html"
  23. status = 200