Skip to content

Commit

Permalink
Actually use deploy-netlify.sh for all sites
Browse files Browse the repository at this point in the history
  • Loading branch information
illicitonion committed Dec 6, 2024
1 parent cf42056 commit 597aebe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tooling/common-config/deploy-netlify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@

set -euo pipefail

npm install --legacy-peer-deps

# We set --baseURL on netlify so that any references to .Permalink end up pointing at deploy preview pages, rather than being hard-coded to point at the production URLs.
hugo --minify --environment production --baseURL $DEPLOY_PRIME_URL && npx pagefind --site "public"
2 changes: 1 addition & 1 deletion tooling/common-config/netlify.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[build]
ignore = "exit 1" #always build on PR even if you can't detect changes in this folder
publish = "public"
command = "npm install --legacy-peer-deps && hugo --minify && npx pagefind --site=public"
command = "./deploy-netlify.sh"
[dev]
framework = "hugo"
targetPort = 3000
Expand Down

0 comments on commit 597aebe

Please sign in to comment.