forked from forem/forem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
51 lines (49 loc) · 1.43 KB
/
netlify.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# 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