-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathnetlify.toml
More file actions
50 lines (42 loc) · 1.72 KB
/
netlify.toml
File metadata and controls
50 lines (42 loc) · 1.72 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
# Hugo build configuration for Netlify
# (https://gohugo.io/hosting-and-deployment/hosting-on-netlify/#configure-hugo-version-in-netlify)
# Default build settings
[build]
publish = "public"
command = "hugo --gc --minify"
# "production" environment specific build settings
[build.environment]
HUGO_VERSION = "0.110.0"
HUGO_ENV = "production"
GO_VERSION = "1.18"
[[redirects]]
from = "/deployment/preview-deployed-service/" # this page contains manualLinkRelRef in frontmatter
to = "/reference/deployment/config-preview-link/"
force = true # preview-deployed-service shouldn't appear in search engine results, but if it does, always redirect (same with users typing in directly)
# https://github.com/netlify-labs/netlify-plugin-sitemap
[[plugins]]
package = "@netlify/plugin-sitemap"
[plugins.inputs]
buildDir = "public"
exclude =[
'./public/includes/',
'./public/categories/',
'./public/tags/',
'./public/favicons/',
'./public/404.html',
'./public/deployment/preview-deployed-service/'
]
# set baseURL because we aren't configuring a custom domain in Netlify
# Although the above is called base URL this actually ends up being the hostname in the sitemap and as such trying to use a URL like http://example.com/en/ will results in http://example.com/
# https://github.com/netlify-labs/netlify-plugin-sitemap
baseUrl = "https://developer.armory.io/docs/"
# append missing trailing slash to prettyURL
trailingSlash = true
changeFreq = "daily"
priority = 0.5
# headers https://docs.netlify.com/routing/headers/#syntax-for-the-headers-file
# https://cloud-armory.slack.com/archives/CH4RVCCTS/p1608572781420500
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "SAMEORIGIN"