-
Notifications
You must be signed in to change notification settings - Fork 8
/
netlify.toml
46 lines (37 loc) · 1.48 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
# Netlify Build Configuration
# Be aware that if you have conflicting configuration values, settings specified in
# netlify.toml override any corresponding settings in the Netlify UI.
# https://www.netlify.com/docs/netlify-toml-reference/
# Output directory and build command
[build]
publish = "_site"
command = "npx tinacms build && eleventy"
# Cache generated content between builds (e.g. images)
[[plugins]]
package = "netlify-plugin-11ty"
[plugins.inputs]
cache_img = "assets/images"
cache_img_httpHeader = true
cache_assets = "../.cache"
# Generate a CSP policy at Netlify build time using a build plugin
# Automatically generates SHA-256 hashes for inline <style> and <script> tags
# https://github.com/MarcelloTheArcane/netlify-plugin-csp-generator
[[plugins]]
package = "netlify-plugin-csp-generator"
[plugins.inputs]
buildDir = "_site"
reportOnly = false
exclude = ["admin/**/*"]
[plugins.inputs.policies]
defaultSrc = "'self'"
styleSrc = "'self'"
scriptSrc = "'self' www.google-analytics.com www.googletagmanager.com"
fontSrc = "'self' data: fonts.gstatic.com"
imgSrc = "'self' www.google-analytics.com assets.tina.io"
connectSrc = "www.google-analytics.com identity.tinajs.io content.tinajs.io assets.tinajs.io"
frameAncestors = "'none'"
[[plugins]]
package = "@netlify/plugin-lighthouse"
# optional, deploy the lighthouse report to a path under your site
[plugins.inputs.audits]
output_path = "reports/lighthouse/index.html"