From 530460dfe15d38801c240997f6d1c226d874626f Mon Sep 17 00:00:00 2001 From: Tim Bannister Date: Sun, 23 Feb 2025 23:58:52 +0000 Subject: [PATCH] Fix Netlify configuration --- netlify.toml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/netlify.toml b/netlify.toml index 9a3e3819f5..c118412c55 100644 --- a/netlify.toml +++ b/netlify.toml @@ -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"