Browse Source

fix(demo): BaseURL

George Cushen 6 years ago
parent
commit
316bfe2d8f
1 changed files with 7 additions and 1 deletions
  1. 7 1
      netlify.toml

+ 7 - 1
netlify.toml

@@ -1,5 +1,5 @@
 [build]
 [build]
-  command = "hugo --gc --minify -b $DEPLOY_PRIME_URL --themesDir ../../"
+  command = "hugo --gc --minify -b $URL --themesDir ../../"
   base    = "exampleSite"
   base    = "exampleSite"
   publish = "exampleSite/public"
   publish = "exampleSite/public"
 
 
@@ -10,3 +10,9 @@
 
 
 [context.production.environment]
 [context.production.environment]
   HUGO_ENV = "production"
   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 ../../"