vercel.json 773 B

123456789101112131415161718192021222324252627282930313233
  1. {
  2. "$schema": "https://openapi.vercel.sh/vercel.json",
  3. "version": 2,
  4. "rewrites": [
  5. {
  6. "source": "/(api|organization-avatar|avatar)/(.*)",
  7. "destination": "https://sentry.io/$1/$2"
  8. },
  9. {
  10. "source": "/region/(\\w+)/(.*)",
  11. "destination": "https://$1.sentry.io/$2"
  12. },
  13. { "source": "/_assets/(.*)", "destination": "/$1" },
  14. { "source": "/(.*)", "destination": "/index.html" }
  15. ],
  16. "headers": [
  17. {
  18. "source": "/api/(.*)",
  19. "headers": [{ "key": "Referer", "value": "https://sentry.io/" }]
  20. },
  21. {
  22. "source": "/_assets/(.*)",
  23. "headers": [
  24. {
  25. "key": "Cache-Control",
  26. "value": "public, max-age=31536000, immutable"
  27. }
  28. ]
  29. }
  30. ],
  31. "github": { "silent": true }
  32. }