docbrown/docs/netlify.toml
Abenet Tamiru f655634847
Use yarn in scripts (#12096)
* Use yarn instead of npm in package.json

* Enable yarn for netlify
2021-01-05 09:59:17 -05:00

24 lines
677 B
TOML

# Global settings applied to the whole site.
#
# “publish” is the directory to publish (relative to root of your repo),
# “command” is your build command,
# “base” is directory to change to before starting build. if you set base:
# that is where we will look for package.json/.nvmrc/etc not repo root!
[build]
command = "make"
[environment]
NETLIFY_USE_YARN = 1
# See <https://docs.netlify.com/routing/redirects/redirect-options/> for more options
[[redirects]]
from = "http://docs.dev.to"
to = "http://docs.forem.com"
status = 301
force = true
[[redirects]]
from = "http://docs.dev.to/*"
to = "http://docs.forem.com/:splat"
status = 301
force = true