-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathnetlify.toml.deprecated
More file actions
105 lines (86 loc) · 2.38 KB
/
netlify.toml.deprecated
File metadata and controls
105 lines (86 loc) · 2.38 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# ============================================================================
# DEPRECATED — This file is NOT used. The site is deployed via GitHub Pages
# (see .github/workflows/deploy.yaml). Redirects are now handled by
# layouts/404.html (JS-based wildcard redirects) and static redirect stubs
# in static/annotator/ and static/explorer/.
# ============================================================================
[build]
command = "hugo --gc --minify -b $URL"
publish = "public"
[build.environment]
HUGO_VERSION = "0.158.0"
HUGO_ENABLEGITINFO = "true"
[context.production.environment]
HUGO_ENV = "production"
[context.deploy-preview]
command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
[context.deploy-preview.environment]
HUGO_ENV = "staging"
[context.branch-deploy]
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
[context.branch-deploy.environment]
HUGO_ENV = "staging"
# Redirect old/removed curated resources to the main resources page
[[redirects]]
from = "/curated_resources/*"
to = "/resources/"
status = 301
force = false # Only redirect if page doesn't exist
# Redirect old/removed glossary terms to the main glossary page
[[redirects]]
from = "/glossary/english/*"
to = "/glossary/"
status = 301
force = false
[[redirects]]
from = "/glossary/german/*"
to = "/de/glossary/"
status = 301
force = false
[[redirects]]
from = "/glossary/arabic/*"
to = "/ar/glossary/"
status = 301
force = false
# Redirect old author URLs to contributors page
[[redirects]]
from = "/author/*"
to = "/contributors/"
status = 301
force = false
# Redirect old/removed summaries
[[redirects]]
from = "/summaries/*"
to = "/"
status = 301
force = false
# Redirect old/removed reversals
[[redirects]]
from = "/reversals/*"
to = "/"
status = 301
force = false
# Shortcuts for FLoRA Annotator and FReD Explorer apps
[[redirects]]
from = "/annotator"
to = "/apps/flora_annotator.html"
status = 301
force = false
[[redirects]]
from = "/explorer"
to = "/apps/fred_explorer.html"
status = 301
force = false
[[redirects]]
from = "/re-searchterms"
to = "/apps/re-searchterms.html"
status = 301
force = false
[[headers]]
for = "*.webmanifest"
[headers.values]
Content-Type = "application/manifest+json; charset=UTF-8"
[[headers]]
for = "index.xml"
[headers.values]
Content-Type = "application/rss+xml"