forked from lando/blog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
79 lines (75 loc) · 1.6 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
[build]
base = "./"
publish = ".vuepress/dist"
command = "yarn build"
# Sets our asset optimization
[build.processing.css]
bundle = true
minify = true
[build.processing.js]
bundle = true
minify = true
[build.processing.html]
pretty_urls = false
[build.processing.images]
compress = true
# Caches our images for 1 year
[[headers]]
for = "/images/*"
[headers.values]
Cache-Control = "public, max-age=31536000"
# Redirect to canonical location
[[redirects]]
from = "https://blog.devwithlando.io"
to = "https://lando.dev/blog"
status = 301
force = true
[[redirects]]
from = "https://blog.devwithlando.io/"
to = "https://lando.dev/blog"
status = 301
force = true
[[redirects]]
from = "https://blog.devwithlando.io/*"
to = "https://lando.dev/blog/:splat"
status = 301
force = true
[[redirects]]
from = "https://blog.lando.dev"
to = "https://lando.dev/blog"
status = 301
force = true
[[redirects]]
from = "https://blog.lando.dev/"
to = "https://lando.dev/blog"
status = 301
force = true
[[redirects]]
from = "https://blog.lando.dev/*"
to = "https://lando.dev/blog/:splat"
status = 301
force = true
[[redirects]]
from = "https://blog.lndo.io/"
to = "https://lando.dev/blog"
status = 301
force = true
[[redirects]]
from = "https://blog.lndo.io"
to = "https://lando.dev/blog"
status = 301
force = true
[[redirects]]
from = "https://blog.lndo.io/*"
to = "https://lando.dev/blog/:splat"
status = 301
force = true
# Rewrites
[[redirects]]
from = "/"
to = "/blog"
status = 200
[[redirects]]
from = "/blog/*"
to = "/:splat"
status = 200