forked from philhawksworth/hawksworx.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
138 lines (109 loc) · 3.42 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
[build]
command = "yarn run build"
functions = "functions"
[build.environment]
NODE_VERSION = "10.15.3"
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
X-Content-Type-Options = "nosniff"
Referrer-Policy= "no-referrer-when-downgrade"
# social media card assets
[[redirects]]
from = "/card-image/:path"
to = "https://hawksworx-cards.netlify.com/card/www-hawksworx-com:path"
status = 302
# Simplify requests for my headshots
[[redirects]]
from = "/philhawksworth-*"
to = "/images/philhawksworth-:splat"
# Look after the old use of journal in urls
[[redirects]]
from = "/journal/*"
to = "/blog/:splat"
status = 301
# Simplified blog urls for slugs
[[redirects]]
from = "/blog/:year/:month/:day/:slug"
to = "/blog/:slug"
status = 301
# A serverless cgi-bin!
# https://www.hawksworx.com/cgi-bin/hello/friend
[[redirects]]
from = "/cgi-bin/hello/:name"
to = "/.netlify/functions/hello?name=:name"
status = 200
# Talks and sldes
[[redirects]]
from = "/talks"
to = "/speaking"
status = 302
# Talks and sldes
[[redirects]]
from = "/talks/scriptconf"
to = "https://speakerdeck.com/philhawksworth/next-wave-infrastructure"
status = 302
[[redirects]]
from = "/talks/scriptcom"
to = "https://speakerdeck.com/philhawksworth/next-wave-infrastructure"
status = 302
[[redirects]]
from = "/talks/JAMLDN1"
to = "https://speakerdeck.com/philhawksworth/next-wave-infrastructure"
status = 302
[[redirects]]
from = "/talks/smashing"
to = "https://speakerdeck.com/philhawksworth/next-wave-infrastructure"
status = 302
[[redirects]]
from = "/talks/stealth"
to = "https://speakerdeck.com/philhawksworth/stealthy-git-solving-cms-woes-with-git-on-the-quiet"
status = 302
[[redirects]]
from = "/talks/render"
to = "https://speakerdeck.com/philhawksworth/serving-for-the-win-deployments-and-infrastructure-for-the-rest-of-us"
status = 302
[[redirects]]
from = "/talks/serve"
to = "https://speakerdeck.com/philhawksworth/serving-for-the-win-deployments-and-infrastructure-for-the-rest-of-us"
status = 302
[[redirects]]
from = "/talks/jsheroes"
to = "https://speakerdeck.com/philhawksworth/serving-for-the-win-deployments-and-infrastructure-for-the-rest-of-us"
status = 302
[[redirects]]
from = "/talks/netlify-intro"
to = "https://speakerdeck.com/philhawksworth/netlify-show-and-tell"
status = 302
[[redirects]]
from = "/talks/wad"
to = "https://noti.st/philhawksworth/8ryB2o/next-wave-infrastructure-and-how-to-use-it-for-an-easier-life"
status = 302
[[redirects]]
from = "/talks/hk"
to = "https://noti.st/philhawksworth/XbZbu1/promoting-performance-from-the-ground-up"
status = 302
# 404s
[[redirects]]
from = "*"
to = "/404"
status = 404
# # Config for the Netlify Build Plugin: netlify-plugin-minify-html
# [[plugins]]
# package = "netlify-plugin-minify-html"
# # Specify which deploy contexts we'll minify HTML in.
# # Supports any Deploy Contexts available in Netlify.
# # https://docs.netlify.com/site-deploys/overview/#deploy-contexts
# [plugins.inputs]
# contexts = [
# 'production',
# 'branch-deploy',
# 'deploy-preview'
# ]
# # Override the default options for the minification
# # https://github.com/kangax/html-minifier#options-quick-reference
# [plugins.inputs.minifierOptions]
# removeComments = true
# collapseInlineTagWhitespace = false