* 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
20 lines
600 B
TOML
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
|