mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 15:31:16 +08:00
ADD env variables
This commit is contained in:
parent
744e96714c
commit
04a3ebf397
@ -3,7 +3,7 @@
|
|||||||
"version": "5.2.0-rc.10",
|
"version": "5.2.0-rc.10",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"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",
|
"chromatic": "chromatic test --storybook-addon --exit-zero-on-changes --app-code ab7m45tp9p",
|
||||||
"do-image-snapshots": "../../node_modules/.bin/jest --projects=./image-snapshots",
|
"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",
|
"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",
|
"src": "package.json",
|
||||||
"use": "@now/static-build",
|
"use": "@now/static-build",
|
||||||
"config": {
|
"config": { "distDir": "built-storybooks" }
|
||||||
"distDir": "built-storybooks"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"build": {
|
||||||
|
"env": {
|
||||||
|
"DOTENV_DISPLAY_WARNING": "none",
|
||||||
|
"STORYBOOK_EXAMPLE_APP":"true"
|
||||||
|
}
|
||||||
|
},
|
||||||
"routes": [
|
"routes": [
|
||||||
{ "src": "/(.*)", "dest": "/built-storybooks/$1" }
|
{ "src": "/(.*)", "dest": "/built-storybooks/$1" }
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user