-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
80 lines (64 loc) · 1.7 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
71
72
73
74
75
76
77
78
79
80
[build]
command = "hugo --gc --minify"
publish = "public"
[build.environment]
HUGO_VERSION = "0.143.1"
GO_VERSION = "1.23.6"
HUGO_ENABLEGITINFO = "true"
HUGO_ENV = "production"
TZ = "Asia/Jakarta"
[dev]
command = "hugo server"
framework = "hugo"
targetPort = 1313
[deploy]
command = "netlify deploy --prod --dir=public"
[[redirects]]
from = "https://andremoreno.netlify.app/*"
to = "https://www.andremoreno.id/:splat"
status = 301
force = true
[[redirects]]
# Serve a full size version
from = "/static/*"
to = "/.netlify/images?url=/:splat"
status = 200
[[redirects]]
# Serve a placeholder version
from = "/thumbs/*"
to = "/.netlify/images?url=/:splat&fit=contain&w=50&h=50"
status = 200
[[redirects]]
from = "/*"
to = "/404.html"
status = 404
[[headers]]
for = "/fonts/*"
[headers.values]
"Cache-Control" = "public, max-age=31536000, immutable"
Access-Control-Allow-Origin = "*"
[[headers]]
for = "/scss/*"
[headers.values]
"Cache-Control" = "public, max-age=31536000, immutable"
Access-Control-Allow-Origin = "*"
[[headers]]
for = "/js/*"
[headers.values]
"Cache-Control" = "public, max-age=31536000, immutable"
Access-Control-Allow-Origin = "*"
[[headers]]
for = "/images/*"
[headers.values]
"Cache-Control" = "public, max-age=31536000, immutable"
Access-Control-Allow-Origin = "*"
[[headers]]
for = "/stories/*.jpg"
[headers.values]
"Cache-Control" = "public, max-age=31536000, immutable"
Access-Control-Allow-Origin = "*"
[[plugins]]
package = "netlify-plugin-hugo-cache-resources"
[plugins.inputs]
# If it should show more verbose logs (optional, default = true)
debug = false