From 5d571ad606c36bbe87ce0ecf052ab77ae3a8284f Mon Sep 17 00:00:00 2001 From: Billy Vong Date: Mon, 5 Oct 2020 09:00:18 -0700 Subject: [PATCH] build(vercel): Fix storybook deploys (#20999) I don't know if I can comment in the ignore file, but the issue here is that we need to allow all of the parent directories as well. --- .nowignore | 2 ++ docs-ui/now.json | 4 ---- vercel.json | 21 +++++++++++++++++++++ 3 files changed, 23 insertions(+), 4 deletions(-) delete mode 100644 docs-ui/now.json create mode 100644 vercel.json diff --git a/.nowignore b/.nowignore index adc8275d7f577f..2d3e9074adda2b 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 985f4d149d2799..00000000000000 --- 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 00000000000000..efd56b046c5d37 --- /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} +}