Browse Source

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.
Billy Vong 4 years ago
parent
commit
5d571ad606
3 changed files with 23 additions and 4 deletions
  1. 2 0
      .nowignore
  2. 0 4
      docs-ui/now.json
  3. 21 0
      vercel.json

+ 2 - 0
.nowignore

@@ -22,5 +22,7 @@
 !docs-ui/**
 !.storybook
 !.storybook/**
+!tests
+!tests/fixtures
 !tests/fixtures/integration-docs
 !tests/fixtures/integration-docs/**

+ 0 - 4
docs-ui/now.json

@@ -1,4 +0,0 @@
-{
-  "version": 2,
-  "github": {"silent": true}
-}

+ 21 - 0
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}
+}