| 1 |
[build] |
| 2 |
publish = "public" |
| 3 |
command = "npm ls && hugo --gc --minify" |
| 4 |
|
| 5 |
[build.environment] |
| 6 |
HUGO_VERSION = "0.166.0" |
| 7 |
|
| 8 |
[context.production.environment] |
| 9 |
HUGO_ENV = "production" |
| 10 |
HUGO_ENABLEGITINFO = "true" |
| 11 |
|
| 12 |
[context.split1] |
| 13 |
command = "npm ls && hugo --gc --minify --enableGitInfo" |
| 14 |
|
| 15 |
[context.split1.environment] |
| 16 |
HUGO_ENV = "production" |
| 17 |
|
| 18 |
[context.deploy-preview] |
| 19 |
command = "npm ls && hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL --enableGitInfo" |
| 20 |
|
| 21 |
[context.branch-deploy] |
| 22 |
command = "npm ls && hugo --gc --minify -b $DEPLOY_PRIME_URL" |
| 23 |
|
| 24 |
[context.next.environment] |
| 25 |
HUGO_ENABLEGITINFO = "true" |
| 26 |
|
| 27 |
[[headers]] |
| 28 |
for = "/*.jpg" |
| 29 |
|
| 30 |
[headers.values] |
| 31 |
Cache-Control = "public, max-age=31536000" |
| 32 |
|
| 33 |
[[headers]] |
| 34 |
for = "/*.png" |
| 35 |
|
| 36 |
[headers.values] |
| 37 |
Cache-Control = "public, max-age=31536000" |
| 38 |
|
| 39 |
[[headers]] |
| 40 |
for = "/*.css" |
| 41 |
|
| 42 |
[headers.values] |
| 43 |
Cache-Control = "public, max-age=31536000" |
| 44 |
|
| 45 |
[[headers]] |
| 46 |
for = "/*.js" |
| 47 |
|
| 48 |
[headers.values] |
| 49 |
Cache-Control = "public, max-age=31536000" |
| 50 |
|
| 51 |
[[headers]] |
| 52 |
for = "/*.ttf" |
| 53 |
|
| 54 |
[headers.values] |
| 55 |
Cache-Control = "public, max-age=31536000" |