Skip to content

Commit ea1455f

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

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

netlify.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
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"
810

911
[context.production.environment]

0 commit comments

Comments
 (0)