From: Salamandra Devs <120526408+SalamandraDevs@users.noreply.github.com> Date: Thu, 19 Jan 2023 14:49:29 +0000 (-0500) Subject: Agregando archivo de configuración de Netlify X-Git-Url: https://git.josue.xyz/?a=commitdiff_plain;h=0616464f02c775e9b9f15b9341a67af9bdde6673;p=salamandradevs.site%2F.git Agregando archivo de configuración de Netlify Habilita más opciones que en el dashboard de Netlify --- diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 0000000..c61960e --- /dev/null +++ b/netlify.toml @@ -0,0 +1,49 @@ +[build] +publish = "public_html" +command = "hugo --gc" + +[context.production.environment] +HUGO_VERSION = "0.72.0" +HUGO_ENV = "production" +HUGO_ENABLEGITINFO = "true" + +[context.split1] +command = "hugo --gc --enableGitInfo" + +[context.split1.environment] +HUGO_VERSION = "0.72.0" +HUGO_ENV = "production" + +[context.deploy-preview] +command = "hugo --gc --buildFuture -b $DEPLOY_PRIME_URL" + +[context.deploy-preview.environment] +HUGO_VERSION = "0.72.0" + +[context.branch-deploy] +command = "hugo --gc -b $DEPLOY_PRIME_URL" + +[context.branch-deploy.environment] +HUGO_VERSION = "0.72.0" + +[context.next.environment] +HUGO_ENABLEGITINFO = "true" + +# The following redirect is intended for use with most SPAs that handle +# routing internally. +# [[redirects]] +# from = "/*" +# to = "/index.html" +# status = 200 +# +# [[redirects]] +# from = "https://salamandradevs.netlify.app" +# to = "https://salamandradevs.site" +# status = 301 +# force = true + +[[headers]] + # Enable CORS. + for = "/*" + [headers.values] + Access-Control-Allow-Origin = "*"