docbrown/app/javascript/netlify.toml
Andy Zhao 864fd9e072
Use proper Node version for Storybook (#15182)
* Try using Netlify pre-built yarn

* Add env vars to maybe trigger Yarn

* shrug

* Try using npm to build storybook

* Add  npm install

* Update node version and use original command

* Update yarn version

* idk :(

* Try pulling versions from files instead of hardcoding

* Possibly in root already?

* never mind dynamic var usage is not supported

* yarn version prob unused b/c we technically use npm
2021-10-25 15:29:03 -04:00

20 lines
600 B
TOML

[build]
base = "app/javascript"
command = "npm install yarn && yarn install && yarn run build-storybook"
publish = "storybook-static"
ignore = "git diff --quiet HEAD^ HEAD ./ && git diff --quiet HEAD^ HEAD ../assets/stylesheets/config/"
[build.environment]
NODE_VERSION = "14"
# See <https://docs.netlify.com/routing/redirects/redirect-options/> for more options
[[redirects]]
from = "http://storybook.dev.to"
to = "https://storybook.forem.com"
status = 301
force = true
[[redirects]]
from = "http://storybook.dev.to/*"
to = "https://storybook.forem.com/:splat"
status = 301
force = true