summaryrefslogtreecommitdiffstats
path: root/netlify.toml
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-07-02 23:31:48 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-07-02 23:31:48 +0200
commite3ea88853bb45a5e8b14b44f464df1d6176b968c (patch)
treedb1f2709fab5247b6b873a9c39b123f855258fcc /netlify.toml
parentb90c5ce20c9a9f05710236a3661f6236ef3f5539 (diff)
downloadgohugo-theme-ed-e3ea88853bb45a5e8b14b44f464df1d6176b968c.tar.gz
Use package.json scripts for netlify commands
Diffstat (limited to 'netlify.toml')
-rw-r--r--netlify.toml8
1 files changed, 4 insertions, 4 deletions
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'