Explorar o código

fix(demo): BaseURL

George Cushen %!s(int64=6) %!d(string=hai) anos
pai
achega
316bfe2d8f
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  1. 7 1
      netlify.toml

+ 7 - 1
netlify.toml

@@ -1,5 +1,5 @@
 [build]
-  command = "hugo --gc --minify -b $DEPLOY_PRIME_URL --themesDir ../../"
+  command = "hugo --gc --minify -b $URL --themesDir ../../"
   base    = "exampleSite"
   publish = "exampleSite/public"
 
@@ -10,3 +10,9 @@
 
 [context.production.environment]
   HUGO_ENV = "production"
+
+[context.deploy-preview]
+  command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL --themesDir ../../"
+
+[context.branch-deploy]
+  command = "hugo --gc --minify -b $DEPLOY_PRIME_URL --themesDir ../../"