ADD env variables

This commit is contained in:
Norbert de Langen 2019-09-11 17:05:54 +02:00
parent 744e96714c
commit 04a3ebf397
2 changed files with 8 additions and 4 deletions

View File

@ -3,7 +3,7 @@
"version": "5.2.0-rc.10",
"private": true,
"scripts": {
"build-storybook": "build-storybook -c ./",
"build-storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true build-storybook -c ./",
"chromatic": "chromatic test --storybook-addon --exit-zero-on-changes --app-code ab7m45tp9p",
"do-image-snapshots": "../../node_modules/.bin/jest --projects=./image-snapshots",
"generate-addon-jest-testresults": "jest --config=tests/addon-jest.config.json --json --outputFile=stories/addon-jest.testresults.json",

View File

@ -13,11 +13,15 @@
{
"src": "package.json",
"use": "@now/static-build",
"config": {
"distDir": "built-storybooks"
}
"config": { "distDir": "built-storybooks" }
}
],
"build": {
"env": {
"DOTENV_DISPLAY_WARNING": "none",
"STORYBOOK_EXAMPLE_APP":"true"
}
},
"routes": [
{ "src": "/(.*)", "dest": "/built-storybooks/$1" }
]