forked from pocc/tshark.dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetlify.toml
More file actions
67 lines (57 loc) · 1.61 KB
/
netlify.toml
File metadata and controls
67 lines (57 loc) · 1.61 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
# --minify removed because it mangles mermaid svg. Readd it to all commands when github.com/tdewolff/minify#256 is merged into hugo
[build]
publish = "public"
command = "hugo --gc"
[context.production.environment]
HUGO_VERSION = "0.58.1"
HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true"
[context.split1]
command = "hugo --gc --enableGitInfo"
[context.split1.environment]
HUGO_VERSION = "0.55.6"
HUGO_ENV = "production"
[context.deploy-preview]
command = "hugo --gc --buildFuture -b $DEPLOY_PRIME_URL"
[context.deploy-preview.environment]
HUGO_VERSION = "0.55.6"
[context.branch-deploy]
command = "hugo --gc -b $DEPLOY_PRIME_URL"
[context.branch-deploy.environment]
HUGO_VERSION = "0.55.6"
[context.next.environment]
HUGO_ENABLEGITINFO = "true"
[[headers]]
for = "/css/*"
[headers.values]
Cache-Control = "public, max-age=31536000"
[[headers]]
for = "/js/*"
[headers.values]
Cache-Control = "public, max-age=31536000"
[[headers]]
for = "/webfonts/*"
[headers.values]
Cache-Control = "public, max-age=31536000"
[[headers]]
for = "/fonts/*"
[headers.values]
Cache-Control = "public, max-age=31536000"
# Required for expected behavior
[[redirects]]
from = "/home"
to = "/"
status = 301
# A couple pages that have 10+ 404s after page movement (so redirect)
[[redirects]]
from = "/download/search"
to = "/search/pcaptable"
status = 301
[[redirects]]
from = "/packetcraft/tshark_colorized/"
to = "/packetcraft/add_context/tshark_colorized/"
status = 301
[[redirects]]
from = "/analyze/add_context/name_resolution/"
to = "/packetcraft/add_context/name_resolution/"
status = 301