forked from rackerlabs/support-how-to
-
Notifications
You must be signed in to change notification settings - Fork 1
/
netlify.toml
109 lines (85 loc) · 2.9 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
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
106
107
108
109
[build.environment]
HUGO_VERSION = "0.78.2"
NPM_VERSION = "6.14.8"
NODE_VERSION = "12.16.3"
[build]
command = "npm run build"
publish = "public"
[context.production]
publish = "public"
HUGO_ENV = "production"
command = "npm run build"
[context.deploy-preview]
publish = "public"
command = "npm run build-preview"
[context.staging]
publish = "public"
command = "npm run build"
[[headers]]
for = "/img/*"
[headers.values]
Cache-Control = "public, s-max-age=604800"
[[headers]]
for = "/*.css"
[headers.values]
Cache-Control = "public, s-max-age=604800"
[[headers]]
for = "/*.js"
[headers.values]
Cache-Control = "public, s-max-age=604800"
[[plugins]]
package = "netlify-plugin-hugo-cache-resources"
[plugins.inputs]
debug = true
[dev]
framework = "#custom"
# only start Hugo, `netlify dev` builds/serves functions itself
command = "npm start"
# swap ports to keep consistent w/ normal local server
targetPort = 1314
port = 1313
# don't launch browser automatically
autoLaunch = false
# [[plugins]]
# package = "./plugins/netlify-plugin-check-urls"
# [plugins.inputs]
# entryPoints = [
# "*.html","*.md"
# ]
# recursive = true
# pretty = true
# skipPatterns = ["public/support", "public/support/how-to", "public/support/*", "public/support/how-to/*", "https://code.jquery.com/", "https://code.jquery.com/*", "https://stackpath.bootstrapcdn.com/", "https://stackpath.bootstrapcdn.com/*", "https://cdn.jsdelivr.net/", "https://cdn.jsdelivr.net/*", "https://fonts.googleapis.com/", "https://fonts.googleapis.com/*", "https://maxcdn.bootstrapcdn.com/", "https://maxcdn.bootstrapcdn.com/*", "https://stackpath.bootstrapcdn.com/", "https://stackpath.bootstrapcdn.com/*"]
# todoPatterns = []
# checkExternal = false
# followSourceMaps = false
# [[plugins]]
# package = "netlify-plugin-no-more-404"
# all inputs are optional, we just show you the defaults below
# [plugins.inputs]
# # either "warn" or "error"
# on404 = "error"
# # change this key to a new one any time you need to restart from scratch
# cacheKey = "MyCacheKey"
# # (for development) turn true for extra diagnostic logging
# debugMode = false
[[plugins]]
package = "@netlify/plugin-sitemap"
[plugins.inputs]
buildDir = "public"
prettyURLs = true
trailingSlash = true
[[plugins]]
package = "netlify-plugin-a11y"
# all inputs are optional, we just show you the defaults below
[plugins.inputs]
# required config
checkPaths = ['/'] # you can give an array of directories or paths to html files, that you want to run a11y checks on
# optional config
# ignoreDirectories = ['/admin'] # explicitly ignore these directories
resultMode = "warn" # is "error" by default
# Developer only
debugMode = true # extra logging for plugin developers
# [[plugins]]
# package = "@algolia/netlify-plugin-crawler"
# [plugins.inputs]
# branches = ['staging']