Skip to content

Commit 3f48d8e

Browse files
Svarrogh1337oliverbaehler
authored andcommitted
fix(website): separate preview and production deployments (#42)
Signed-off-by: Hristo Hristov <me@hhristov.info> Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>
1 parent 8a070bc commit 3f48d8e

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)