Agregando archivo de configuración de Netlify
authorSalamandra Devs <120526408+SalamandraDevs@users.noreply.github.com>
Thu, 19 Jan 2023 14:49:29 +0000 (09:49 -0500)
committerGitHub <noreply@github.com>
Thu, 19 Jan 2023 14:49:29 +0000 (09:49 -0500)
Habilita más opciones que en el dashboard de Netlify

netlify.toml [new file with mode: 0644]

diff --git a/netlify.toml b/netlify.toml
new file mode 100644 (file)
index 0000000..c61960e
--- /dev/null
@@ -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 = "*"