Skip to content

Commit

Permalink
ci: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Splitter committed Nov 16, 2023
1 parent d57f2ff commit 4b7b841
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -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]
Expand All @@ -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"
Expand Down

0 comments on commit 4b7b841

Please sign in to comment.