diff --git a/.nowignore b/.nowignore index adc8275d7f577..2d3e9074adda2 100644 --- a/.nowignore +++ b/.nowignore @@ -22,5 +22,7 @@ !docs-ui/** !.storybook !.storybook/** +!tests +!tests/fixtures !tests/fixtures/integration-docs !tests/fixtures/integration-docs/** diff --git a/docs-ui/now.json b/docs-ui/now.json deleted file mode 100644 index 985f4d149d279..0000000000000 --- a/docs-ui/now.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "version": 2, - "github": {"silent": true} -} diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000000000..efd56b046c5d3 --- /dev/null +++ b/vercel.json @@ -0,0 +1,21 @@ +{ + "version": 2, + + "rewrites": [ + {"source": "/api/(.*)", "destination": "https://sentry.io/api/$1"}, + {"source": "/_assets/(.*)", "destination": "/$1"}, + {"source": "/(.*)", "destination": "/index.html"} + ], + "headers": [ + { + "source": "/api/(.*)", + "headers": [{"key": "Referer", "value": "https://sentry.io/"}] + } + ], + "build": { + "env": { + "SENTRY_EXPERIMENTAL_SPA": "1" + } + }, + "github": {"silent": true} +}