Skip to content

Commit

Permalink
build(vercel): Fix storybook deploys (#20999)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
billyvg committed Oct 5, 2020
1 parent 610cd40 commit 5d571ad
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .nowignore
Expand Up @@ -22,5 +22,7 @@
!docs-ui/**
!.storybook
!.storybook/**
!tests
!tests/fixtures
!tests/fixtures/integration-docs
!tests/fixtures/integration-docs/**
4 changes: 0 additions & 4 deletions docs-ui/now.json

This file was deleted.

21 changes: 21 additions & 0 deletions 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}
}

0 comments on commit 5d571ad

Please sign in to comment.