-
Notifications
You must be signed in to change notification settings - Fork 1
/
netlify.toml
34 lines (29 loc) · 975 Bytes
/
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
[build]
command = "npm test && npm start"
publish = "build/"
ignore = "node netlify-ignore-build.js"
[build.environment]
# FONTAWESOME_TOKEN
# UNSPLASH_ACCESS_KEY
# UNSPLASH_SECRET_KEY
NODE_ENV = "production"
TZ = "America/Los_Angeles"
PYTHON_VERSION = "3.8" # for sharp/libvips
[build.processing]
# Site settings > Build & deploy > Post processing > Asset Optimization
skip_processing = false
[[plugins]]
# https://www.zachleat.com/web/chromium-missing/
package = "netlify-plugin-cache"
[plugins.inputs]
paths = ["/opt/buildhome/.cache/puppeteer"]
[[context.production.plugins]]
package = "netlify-plugin-submit-sitemap"
[[context.deploy-preview.plugins]]
package = "@netlify/plugin-lighthouse"
[[context.deploy-preview.plugins.inputs.audits]]
path = ""
output_path = "lighthouse.html"
[[context.deploy-preview.plugins.inputs.audits]]
path = "blog/starting-a-metalsmith-project"
output_path = "lighthouse.html"