-
Notifications
You must be signed in to change notification settings - Fork 1
/
netlify.toml
37 lines (31 loc) · 1.05 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
[build]
command = "npm test && npm start"
publish = "build/"
ignore = "node netlify-ignore-build.js"
[context.production]
command = "npm start"
[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]]
# Also install in the UI to get results on build pages
# https://app.netlify.com/plugins/@netlify/plugin-lighthouse/install
package = "@netlify/plugin-lighthouse"
[[context.deploy-preview.plugins.inputs.audits]]
path = ""
[[context.deploy-preview.plugins.inputs.audits]]
path = "blog/starting-a-metalsmith-project"