diff --git a/netlify.toml b/netlify.toml index 862e3797e94b9af3b1bbfd76736665c0feaeafcd..39c7ead57cc0364ee788b3371a95e416bb36fc32 100644 --- a/netlify.toml +++ b/netlify.toml @@ -4,8 +4,9 @@ publish = "web/public" command = """ git lfs fetch - yarn --ignore-engines --ignore-optional --non-interactive && - hugo""" + yarn --ignore-engines --ignore-optional --non-interactive + hugo + node_modules/.bin/hugo-algolia --toml -s""" [context.production.environment] HUGO_VERSION = "0.47" @@ -15,7 +16,7 @@ [context.deploy-preview] command = """ git lfs fetch - yarn --ignore-engines --ignore-optional --non-interactive && + yarn --ignore-engines --ignore-optional --non-interactive hugo -b $DEPLOY_PRIME_URL""" [context.deploy-preview.environment] @@ -23,11 +24,9 @@ [context.branch-deploy] command = """ - hugo version git lfs fetch - yarn --ignore-engines --ignore-optional --non-interactive && - hugo -b $DEPLOY_PRIME_URL - node_modules/.bin/hugo-algolia --toml -s""" + yarn --ignore-engines --ignore-optional --non-interactive + hugo -b $DEPLOY_PRIME_URL""" [context.branch-deploy.environment] HUGO_VERSION = "0.47"