forked from lando/pantheon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
35 lines (32 loc) · 951 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
35
[build]
base = "./"
publish = "docs/.vuepress/dist"
command = "yarn docs:build"
# This sort of lets us build only on tagged commits to prod
# [context.production]
# ignore = "if git diff $CACHED_COMMIT_REF $COMMIT_REF ./package.json | grep - | grep version && git diff $CACHED_COMMIT_REF $COMMIT_REF ./package.json | grep + | grep version; then exit 1; else exit 0; fi"
# Sets our asset optimization
[build.processing.css]
bundle = true
minify = true
[build.processing.js]
bundle = true
minify = true
[build.processing.html]
pretty_urls = false
[build.processing.images]
compress = true
# Caches our images for 1 year
[[headers]]
for = "/images/*"
[headers.values]
Cache-Control = "public, max-age=31536000"
# We need this so preview environments and the base site look ok on their own
[[redirects]]
from = "/"
to = "/pantheon"
status = 200
[[redirects]]
from = "/pantheon/*"
to = "/:splat"
status = 200