mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 16:11:33 +08:00
ADD env variables
This commit is contained in:
parent
744e96714c
commit
04a3ebf397
@ -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",
|
||||
|
10
now.json
10
now.json
@ -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" }
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user