packaging: automatically set BaseURL for Netlify deployments
This commit is contained in:
		@@ -1,5 +1,5 @@
 | 
				
			|||||||
[build]
 | 
					[build]
 | 
				
			||||||
  command = "hugo"
 | 
					  command = "hugo --gc --minify -b $URL"
 | 
				
			||||||
  publish = "public"
 | 
					  publish = "public"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[build.environment]
 | 
					[build.environment]
 | 
				
			||||||
@@ -8,3 +8,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"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[context.branch-deploy]
 | 
				
			||||||
 | 
					  command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user