From e3ea88853bb45a5e8b14b44f464df1d6176b968c Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sat, 2 Jul 2022 23:31:48 +0200 Subject: Use package.json scripts for netlify commands --- netlify.toml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'netlify.toml') diff --git a/netlify.toml b/netlify.toml index c1cdc73..a1dbd9f 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,6 +1,6 @@ [build] publish = 'public' - command = 'hugo --source=exampleSite --gc --verbose --destination ../public' + command = 'npm run build:prod' [context.production.environment] HUGO_VERSION = '0.101.0' @@ -9,20 +9,20 @@ HUGO_GOOGLEANALYTICS = 'G-DP9Q137C3X' [context.split1] - command = 'hugo --source=exampleSite --gc --enableGitInfo --destination ../public' + command = 'npm run build:split1' [context.split1.environment] HUGO_VERSION = '0.101.0' HUGO_ENV = 'production' [context.deploy-preview] - command = 'hugo --source=exampleSite --gc --buildDrafts --buildFuture --baseURL $DEPLOY_PRIME_URL --destination ../public' + command = 'npm run build:preview' [context.deploy-preview.environment] HUGO_VERSION = '0.101.0' [context.branch-deploy] - command = 'hugo --source=exampleSite --gc --baseURL $DEPLOY_PRIME_URL --destination ../public' + command = 'npm run build:branch' [context.branch-deploy.environment] HUGO_VERSION = '0.101.0' -- cgit v1.2.3