From 4159252ff88545268b3e7a7a7fcaf11be2ac1be6 Mon Sep 17 00:00:00 2001 From: Daniel Wagner-Hall Date: Fri, 27 Dec 2024 00:06:30 +0000 Subject: [PATCH] Use $URL not $DEPLOY_PRIME_URL $DEPLOY_PRIME_URL appears to point at a .netlify.app version of the site, rather than the URL it's actually getting deployed as. --- tooling/common-config/deploy-netlify.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tooling/common-config/deploy-netlify.sh b/tooling/common-config/deploy-netlify.sh index ccfc25a77..078d16c70 100755 --- a/tooling/common-config/deploy-netlify.sh +++ b/tooling/common-config/deploy-netlify.sh @@ -5,4 +5,4 @@ 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" +hugo --minify --environment production --baseURL $URL && npx pagefind --site "public"