docbrown/netlify.toml
Andy Zhao dd62a321d1 Add Setup for storybook.dev.to (#3885)
* WIP test custom deploy script

* Add console logs

* Use common JS require instead of import

* WIP

* Use proper names

* Move back one directory...?

* Add npm install?

* Remove console logs

* Refactor a bit
2019-09-03 16:49:37 -04:00

51 lines
1.4 KiB
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]
base = "docs/"
command = "node deploy-script.js"
[[redirects]]
from = "http://docs.dev.to"
to = "https://docs.dev.to"
[[redirects]]
from = "http://docs.dev.to/ruby-doc"
to = "https://docs.dev.to/ruby-doc/index.html"
[[redirects]]
from = "http://docs.dev.to/ruby-doc/"
to = "https://docs.dev.to/ruby-doc/index.html"
[[redirects]]
from = "http://docs.dev.to/api"
to = "https://docs.dev.to/api/index.html"
[[redirects]]
from = "http://docs.dev.to/api/"
to = "https://docs.dev.to/api/index.html"
[[redirects]]
from = "http://docs.dev.to/*"
to = "https://docs.dev.to/:splat"
status = 301
[[redirects]]
from = "docs.dev.to"
to = "https://docs.dev.to"
[[redirects]]
from = "docs.dev.to/*"
to = "https://docs.dev.to/:splat"
status = 301
[[redirects]]
from = "http://devto.netlify.com"
to = "https://docs.dev.to"
[[redirects]]
from = "http://devto.netlify.com/*"
to = "https://docs.dev.to/:splat"
status = 301
[[redirects]]
from = "https://devto.netlify.com"
to = "https://docs.dev.to"
[[redirects]]
from = "https://devto.netlify.com/*"
to = "https://docs.dev.to/:splat"
status = 301