-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnetlify.toml
70 lines (62 loc) · 1.93 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
[[headers]]
for = "/favicon/*"
[headers.values]
Access-Control-Allow-Origin = "*"
[[headers]]
for = "/feeds/*"
[headers.values]
Access-Control-Allow-Origin = "*"
[[headers]]
for = "/manifest.json"
[headers.values]
Access-Control-Allow-Origin = "*"
[[headers]]
for = "*.js"
[headers.values] # cache for 1 year
Access-Control-Allow-Origin = "*"
Cache-Control = "public, max-age=31536000"
[[headers]]
for = "*.css"
[headers.values] # cache for 1 year
Access-Control-Allow-Origin = "*"
Cache-Control = "public, max-age=31536000"
[[headers]]
for = "/*.(svg|jpg|jpeg|png|gif|webp|ico|ttf|ttc|otf|eot|woff|woff2)"
[headers.values] # cache for 1 year
Access-Control-Allow-Origin = "*"
Cache-Control = "public, max-age=31536000, immutable"
# dev branch build
# https://dev--gymcms.netlify.com/
[context.dev]
command = "JEKYLL_ENV=development bundle exec jekyll build --config _dev_config.yml"
[context.dev.processing.images]
compress = true
[context.dev.processing.css]
minify = true
[context.dev.processing.js]
minify = true
# staging branch build
# https://staging.thegymcms.com/
[context.staging]
command = "JEKYLL_ENV=staging bundle exec jekyll build"
[context.staging.processing.images]
compress = true
[context.staging.processing.css]
minify = true
[context.staging.processing.js]
minify = true
# Deploy preview build
[context.deploy-preview]
command = "printf \"url: %s\" \"$DEPLOY_PRIME_URL\" > _config_netlify.yml; JEKYLL_ENV=staging bundle exec jekyll build --config _config.yml,_config_netlify.yml"
[context.deploy-preview.processing]
skip_processing = true
# production branch build
# https://thegymcms.com/
[context.production]
command = "JEKYLL_ENV=production bundle exec jekyll build --config _production_config.yml"
[context.production.processing.images]
compress = true
[context.production.processing.css]
minify = true
[context.production.processing.js]
minify = true