Skip to content

Commit 7c61187

Browse files
committed
fix(website): separate preview and production deployments
Signed-off-by: Hristo Hristov <me@hhristov.info>
1 parent 730e447 commit 7c61187

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

netlify.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44

55
[build]
66
publish = "public"
7+
command = "npm install --save-dev autoprefixer && npm install --save-dev postcss-cli && npm install -D postcss && hugo --gc --minify --baseURL $URL"
8+
[context.deploy-preview]
79
command = "npm install --save-dev autoprefixer && npm install --save-dev postcss-cli && npm install -D postcss && hugo --gc --minify --baseURL $DEPLOY_PRIME_URL"
8-
910
[context.production.environment]
1011
HUGO_VERSION = "0.145.0"
1112
HUGO_ENV = "production"

0 commit comments

Comments
 (0)