aboutsummaryrefslogtreecommitdiff
path: root/netlify.toml
diff options
context:
space:
mode:
authorolOwOlo <26087907+olOwOlo@users.noreply.github.com>2020-08-03 02:16:53 +0800
committerolOwOlo <26087907+olOwOlo@users.noreply.github.com>2020-08-03 02:16:53 +0800
commita652d0c0c6aeecf2b8bfbc0740fc97554b76b031 (patch)
tree9a191e197baef158122342a6dfac042b3f845632 /netlify.toml
parent620ff8124d0c61f60428a3d47e907d1987729bf2 (diff)
chore(netlify.toml): init configuration file
Diffstat (limited to 'netlify.toml')
-rw-r--r--netlify.toml24
1 files changed, 24 insertions, 0 deletions
diff --git a/netlify.toml b/netlify.toml
new file mode 100644
index 0000000..2dc69e2
--- /dev/null
+++ b/netlify.toml
@@ -0,0 +1,24 @@
+[build]
+ publish = "exampleSite/public"
+ command = "hugo -s exampleSite"
+
+[build.environment]
+ HUGO_THEME = "repo"
+ HUGO_THEMESDIR = "/opt/build"
+ HUGO_VERSION = "0.74.3"
+
+[context.production.environment]
+ HUGO_BASEURL = "https://hugo-theme-even.netlify.app/"
+
+[context.deploy-preview]
+ command = "hugo -s exampleSite -b $DEPLOY_PRIME_URL"
+
+[[headers]]
+ for = "/*"
+ [headers.values]
+ Cache-Control = "public, max-age=600"
+
+[[headers]]
+ for = "*.(css|js|woff|woff2|ttf|png|jpg|jpeg)"
+ [headers.values]
+ Cache-Control = "public, max-age=2592000"