add netlify config

This commit is contained in:
Dmitry Kolosov 2021-11-02 18:26:27 +03:00
parent fd6a2df136
commit 18945c4bd5

15
netlify.toml Normal file
View File

@ -0,0 +1,15 @@
[build]
publish = "exampleSiteMultilingual/public"
command = "cd exampleSiteMultilingual && hugo --themesDir=../.. --baseURL $URL"
[build.environment]
HUGO_VERSION = "0.89.0"
HUGO_THEME = "repo"
[context.deploy-preview]
command = "cd exampleSiteMultilingual && hugo --themesDir=../.. --buildFuture --buildDrafts --baseURL $DEPLOY_PRIME_URL"
[[headers]]
for = "/*"
[headers.values]
Access-Control-Allow-Origin = "*"