docbrown/app/javascript/netlify.toml
Andy Zhao 1fd0ec4041
Try yarn instead over npm for storybook deploys (#12376)
* Try yarn instead over npm

* Remove ignore flag and use default flag

* Add yarn version

* Remove --docs

* Use NPM :( we don't have a yarn.lock in app/javascript

* Use NPM :( we don't have a yarn.lock in app/javascript

* Updated base to root to use yarn

* hack the command with cd 🙃

* debuggng

* copy package.json and yarn.lock from root

* Set flag to use yarn explicitly

* Oops

* Try a different way

* Package.json not yarn.lock

* Maybe??

* Install yarn with npm then run yarn install??

* Add a Node version

* Try one more thing...

* Syntax error

* I think it's working...

* nvm it didn't work

* Use any 14.14 node version -- syntax correct maybe?

* Fix broken redirects smh

* Update redirects for storybook

* Remove unnecessary redirect rule

* Trigger notifications

* Trigger notifications

* Remove some unused comments
2021-02-26 10:30:56 -05:00

21 lines
686 B
TOML

[build]
# environment variables NODE_VERSION and YARN_VERSION set in Netlify settings UI
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.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