Fix Netlify configuration

pull/49873/head
Tim Bannister 2025-02-23 23:58:52 +00:00
parent 1c250e49bf
commit 530460dfe1
No known key found for this signature in database
GPG Key ID: 31BA93F2DB289EFE
1 changed files with 5 additions and 5 deletions

View File

@ -10,11 +10,6 @@ command = "git submodule update --init --recursive --depth 1 && make non-product
NODE_VERSION = "20.17.0"
HUGO_VERSION = "0.133.0"
[context.production.environment]
HUGO_BASEURL = "https://kubernetes.io/"
HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true"
[context.deploy-preview]
command = "git submodule update --init --recursive --depth 1 && make deploy-preview && npx -y pagefind --site public"
@ -28,3 +23,8 @@ command = "git submodule update --init --recursive --depth 1 && make non-product
# Ref: https://docs.netlify.com/configure-builds/file-based-configuration/#deploy-contexts
publish = "public"
command = "git submodule update --init --recursive --depth 1 && make production-build && npx -y pagefind --site public"
[context.production.environment]
HUGO_BASEURL = "https://kubernetes.io/"
HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true"