-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathnetlify.toml
46 lines (37 loc) · 1.06 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
[build]
command = "hugo --gc --minify -b $URL && npx pagefind --source 'public'"
publish = "public"
[build.environment]
HUGO_VERSION = "0.125.6"
GO_VERSION = "1.21.5"
NODE_VERSION = "21.1.0"
HUGO_ENABLEGITINFO = "false"
[context.production.environment]
HUGO_ENV = "production"
[context.deploy-preview]
command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL && npx pagefind --source 'public'"
[context.branch-deploy]
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL && npx pagefind --source 'public'"
[[plugins]]
package = "netlify-plugin-hugo-cache-resources"
[plugins.inputs]
debug = true
[[headers]]
for = "index.xml"
[headers.values]
Content-Type = "application/rss+xml"
[[redirects]]
from = "https://stefanocecere.com/blog/*"
to = "https://cecere.xyz/post/:splat"
status = 301
force = true
[[redirects]]
from = "https://stefanocecere.com/*"
to = "https://cecere.xyz/:splat"
status = 301
force = true
[[redirects]]
from = "https://cecere.org/*"
to = "https://cecere.xyz/:splat"
status = 301
force = true