-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathnetlify.toml
More file actions
89 lines (72 loc) · 2.28 KB
/
Copy pathnetlify.toml
File metadata and controls
89 lines (72 loc) · 2.28 KB
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
[build]
publish = "public"
command = "hugo --gc --minify"
[context.production.environment]
HUGO_VERSION = "0.162.1"
HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true"
[context.split1]
command = "hugo --gc --minify --enableGitInfo"
[context.split1.environment]
HUGO_VERSION = "0.162.1"
HUGO_ENV = "production"
[context.deploy-preview]
command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
[context.deploy-preview.environment]
HUGO_VERSION = "0.162.1"
[context.branch-deploy]
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
[context.branch-deploy.environment]
HUGO_VERSION = "0.162.1"
[context.next.environment]
HUGO_ENABLEGITINFO = "true"
[[plugins]]
package = "netlify-plugin-image-optim"
# Runs AFTER image-optim (same-event plugins run in listed order) and copies
# static/img SVGs back verbatim — image-optim's SVGO pass strips the CSS
# animations in our diagrams. Mirrors the svgo ignore in .trunk/trunk.yaml.
[[plugins]]
package = "./plugins/restore-animated-svgs"
[[redirects]]
from = "/updates/*"
to = "/blog/:splat"
status = 301
force = true
# linktree's link shortener + QRCode generator lost my link... so now we need a redirect
[[redirects]]
from = "/tying-knot/"
to = "/tying-the-masterpoint-knot/"
status = 301
force = true
########################################################
# case study slug shortened for consistency (power-digital-case-study -> power-digital)
[[redirects]]
from = "/case-studies/power-digital-case-study/"
to = "/case-studies/power-digital/"
status = 301
force = true
[[redirects]]
from = "/power-digital-case-study/"
to = "/case-studies/power-digital/"
status = 301
force = true
########################################################
########################################################
# Plausible Analytics proxy. Serves the tracker first-party so ad blockers
# don't strip it. These MUST stay above the catch-all 404 below, and the paths
# MUST match the script src + endpoint in layouts/partials/plausible.html
[[redirects]]
from = "/mpx/js/script.js"
to = "https://plausible.io/js/pa-J584RNJ6fxr4nE6Fry8ys.js"
status = 200
force = true
[[redirects]]
from = "/mpx/api/event"
to = "https://plausible.io/api/event"
status = 200
force = true
########################################################
[[redirects]]
from = "/*"
to = "/404.html"
status = 404