From 4b7b8418961115b42d65f9ba10a44420945a1275 Mon Sep 17 00:00:00 2001 From: Splitter Date: Thu, 16 Nov 2023 08:25:40 +0000 Subject: [PATCH] ci: fix --- netlify.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/netlify.toml b/netlify.toml index e35a1fc..5f81ca8 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,5 +1,5 @@ [build] - command = "hugo --gc --minify -b $URL" + command = "hugo --gc --minify -b $URL && npx pagefind --source 'public'" publish = "public" [build.environment] @@ -10,10 +10,10 @@ HUGO_ENV = "production" [context.deploy-preview] - command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL" + command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL && npx pagefind --source 'public'" [context.branch-deploy] - command = "hugo --gc --minify -b $DEPLOY_PRIME_URL" + command = "hugo --gc --minify -b $DEPLOY_PRIME_URL && npx pagefind --source 'public'" [[plugins]] package = "netlify-plugin-hugo-cache-resources"