From 7c61187238ae87f7507f7931b494b34e7a0dddca Mon Sep 17 00:00:00 2001 From: Hristo Hristov Date: Wed, 27 Aug 2025 10:49:45 +0300 Subject: [PATCH] fix(website): separate preview and production deployments Signed-off-by: Hristo Hristov --- netlify.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index 7f9175e..82841a2 100644 --- a/netlify.toml +++ b/netlify.toml @@ -4,8 +4,9 @@ [build] publish = "public" +command = "npm install --save-dev autoprefixer && npm install --save-dev postcss-cli && npm install -D postcss && hugo --gc --minify --baseURL $URL" +[context.deploy-preview] command = "npm install --save-dev autoprefixer && npm install --save-dev postcss-cli && npm install -D postcss && hugo --gc --minify --baseURL $DEPLOY_PRIME_URL" - [context.production.environment] HUGO_VERSION = "0.145.0" HUGO_ENV = "production"