forked from redwoodjs/redwoodjs-com-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
87 lines (71 loc) · 1.77 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
80
81
82
83
84
85
86
87
[dev]
command = "cameronjs dev"
publish = "publish"
port = 8080
[build]
command = "yarn build"
publish = "publish"
functions = "functions"
# For more settings see https://www.netlify.com/docs/netlify-toml-reference/#post-processing
[build.processing]
skip_processing = false
[build.processing.css]
minify = true
[build.processing.js]
minify = true
[build.processing.html]
pretty_urls = true
[build.processing.images]
compress = true
[context.production]
environment = { NODE_ENV = "production"}
[context.branch-deploy]
environment = { NODE_ENV = "production" }
[[redirects]]
from = "/docs/*"
to = "https://redwoodjs-docs.netlify.app/docs/:splat"
status = 200
force = true
[[redirects]]
from = "/cookbook"
to = "/docs/how-to/index"
status = 301
force = true
[[redirects]]
from = "/cookbook/*"
to = "/docs/how-to/:splat"
status = 301
force = true
[[redirects]]
from = "/tutorial"
to = "/docs/tutorial/welcome-to-redwood"
status = 301
force = true
[[redirects]]
from = "/tutorial/*"
to = "/docs/tutorial/:splat"
status = 301
force = true
[[redirects]]
from = "/assets/*"
to = "https://redwoodjs-docs.netlify.app/assets/:splat"
status = 200
force = true
[[redirects]]
from = "/img/*"
to = "https://redwoodjs-docs.netlify.app/img/:splat"
status = 200
force = true
[[redirects]]
from = "/newsletter"
to = "https://redwoodjs.us19.list-manage.com/subscribe/post?u=0c27354a06a7fdf4d83ce07fc&id=09f634eea4"
force = true
[[redirects]]
from ="/community"
to ="https://community.redwoodjs.com/t/welcome-to-the-redwoodjs-community/2416"
[[redirects]]
from ="/v1launchweek"
to ="https://v1launchweek.redwoodjs.com/"
[[redirects]]
from ="/v1-launch-week"
to ="https://v1launchweek.redwoodjs.com/"