From 0616464f02c775e9b9f15b9341a67af9bdde6673 Mon Sep 17 00:00:00 2001 From: Salamandra Devs <120526408+SalamandraDevs@users.noreply.github.com> Date: Thu, 19 Jan 2023 09:49:29 -0500 Subject: [PATCH] =?utf8?q?Agregando=20archivo=20de=20configuraci=C3=B3n=20?= =?utf8?q?de=20Netlify?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Habilita más opciones que en el dashboard de Netlify --- netlify.toml | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 netlify.toml 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 = "*" -- 2.25.1