-
Notifications
You must be signed in to change notification settings - Fork 2
/
netlify.toml
123 lines (99 loc) · 2.28 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
[build]
base = ""
command = "npm run build"
publish = "dist"
[build.environment]
NODE_VERSION = "20.13.1"
[build.processing]
skip_processing = false
[build.processing.html]
pretty_urls = false
[build.processing.css]
bundle = false
minify = false
[build.processing.js]
bundle = false
minify = false
[build.processing.images]
compress = true
[dev]
framework = "#custom"
command = "npm run dev"
port = 8888
targetPort = 5173
autoLaunch = false
[functions]
directory = "src/functions"
node_bundler = "esbuild"
[functions.poll-keepalive]
schedule = "0 0 * * 0"
[context.production.processing]
skip_processing = false
[context.deploy-preview.processing]
skip_processing = true
[context.branch-deploy]
command = "npm run build:staging"
[context.branch-deploy.processing]
skip_processing = true
# Previews
[[redirects]]
from = "/preview/*"
to = "/.netlify/functions/preview"
status = 200
force = true
# Pretty API
[[redirects]]
from = "/api/*"
to = "/.netlify/functions/:splat"
status = 200
force = true
# Netlify domain
[[redirects]]
from = "https://lihbr.netlify.app/*"
to = "https://lihbr.com/:splat"
status = 301
force = true
# Analytics
[[redirects]]
from = "/p7e/api/event"
to = "https://plausible.io/api/event"
status = 202
force = true
# Old diapositiv (221012)
[[redirects]]
from = "https://diapositiv.lihbr.com/talk/an-introduction-to-nuxt-global-modules"
to = "https://lihbr.com/talks/nuxtnation/an-introduction-to-nuxt-global-modules"
status = 301
force = true
[[redirects]]
from = "https://diapositiv.lihbr.com/talk/integrating-11ty-with-a-cms-and-making-it-cool-to-use"
to = "https://lihbr.com/talks/11ties/integrating-11ty-with-a-cms-and-making-it-cool-to-use"
status = 301
force = true
[[redirects]]
from = "https://diapositiv.lihbr.com/talk/nuxt-3-modules-and-open-source"
to = "https://lihbr.com/talks/vueamsterdam/nuxt-3-modules-and-open-source"
status = 301
force = true
# Old diapositiv (230103)
[[redirects]]
from = "https://diapositiv.lihbr.com/talk/*"
to = "https://lihbr.com/talks/:splat"
status = 301
force = true
[[redirects]]
from = "https://diapositiv.lihbr.com/*"
to = "https://lihbr.com/:splat"
status = 301
force = true
# Old blog (230103)
[[redirects]]
from = "/blog"
to = "/#posts"
status = 301
force = true
[[redirects]]
from = "/blog/*"
to = "/posts/:splat"
status = 301
force = true