-
Notifications
You must be signed in to change notification settings - Fork 40
/
netlify.toml
116 lines (90 loc) · 2.16 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
[build]
command = "npm run build"
publish = "dist"
environment = { NODE_VERSION = "16" }
[dev]
command = "npm run dev"
publish = "dist"
# [[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"
[functions]
node_bundler = "esbuild"
[[edge_functions]]
function = "eleventy-edge"
path = "/*"
[[redirects]]
from = "/notes/search/*"
to = "/notes/search"
status = 200
[[redirects]]
from = "/notes"
to = "/notes/1/"
status = 301
[[redirects]]
from = "/note/tw/"
to = "/notes"
status = 301
[[redirects]]
from = "/note/mstdn/"
to = "/notes"
status = 301
[[redirects]]
from = "/note/"
to = "/notes"
status = 301
[[redirects]]
from = "/note/tw/*"
to = "/.netlify/functions/note-tweet"
status = 200
[[redirects]]
from = "/note/mstdn/*"
to = "/.netlify/functions/note-tweet"
status = 200
# social media card assets
[[redirects]]
from = "/card-image/:path"
to = "https://hawksworx-cards.netlify.app/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/*"
to = "/.netlify/functions/hello?name=:splat"
status = 200
[[redirects]]
from = "/.well-known/webfinger"
to = "https://indieweb.social/.well-known/webfinger?resource=acct:[email protected]"
status = 200
[[redirects]]
from = "/.well-known/webfinger"
to = "https://indieweb.social/.well-known/webfinger?resource=acct:HANDLE@INSTANCE"
status = 200
# social media card assets
[[redirects]]
from = "/resume"
to = "https://philhawksworth-resume.netlify.app/"
status = 200
# 404s
[[redirects]]
from = "*"
to = "/404"
status = 404