From 6c7a273916d00062f99492f12aae18d0ffed4c4d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 27 May 2026 07:27:25 +0000 Subject: [PATCH] fix: remove stale Vercel env var references - closes #2648 - Remove NEXT_PUBLIC_VERCEL_GIT_COMMIT_REF fallback from get-tina-endpoint.tsx - Remove NEXT_PUBLIC_VERCEL_GIT_COMMIT_REF fallback from generate-archived-rules.js - Remove VERCEL_ENV=preview from .env.example - Update .env.example comment to reflect Azure-only hosting Note: The Vercel GitHub App integration also needs to be disconnected from the Vercel dashboard / GitHub repository settings to stop the failing Vercel build checks on PRs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .env.example | 4 +--- scripts/generate-archived-rules.js | 2 +- utils/tina/get-tina-endpoint.tsx | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index b0c8218df..d03eedcdb 100644 --- a/.env.example +++ b/.env.example @@ -2,10 +2,8 @@ NEXT_PUBLIC_TINA_CLIENT_ID=*** TINA_TOKEN=*** -# This is set by default CI with Netlify/Vercel/Github, but can be overriden +# This is set by default CI with Github, but can be overridden NEXT_PUBLIC_TINA_BRANCH=*** -# To see the preview functionality -VERCEL_ENV=preview LOCAL_CONTENT_RELATIVE_PATH=../../SSW.Rules.Content diff --git a/scripts/generate-archived-rules.js b/scripts/generate-archived-rules.js index 80041ce86..64f8d1690 100644 --- a/scripts/generate-archived-rules.js +++ b/scripts/generate-archived-rules.js @@ -18,7 +18,7 @@ const projectRoot = path.resolve(__dirname, ".."); const outputPath = path.join(projectRoot, "archived-rules.json"); const getBranch = () => - process.env.NEXT_PUBLIC_TINA_BRANCH || process.env.NEXT_PUBLIC_VERCEL_GIT_COMMIT_REF || process.env.HEAD || "main"; + process.env.NEXT_PUBLIC_TINA_BRANCH || process.env.HEAD || "main"; const getCandidateUrls = () => { if (process.env.NODE_ENV === "development") { diff --git a/utils/tina/get-tina-endpoint.tsx b/utils/tina/get-tina-endpoint.tsx index b47c7e1f0..f78010ae6 100644 --- a/utils/tina/get-tina-endpoint.tsx +++ b/utils/tina/get-tina-endpoint.tsx @@ -10,7 +10,6 @@ export const getTinaEndpoint = (activeBranch?: string): string | null => { const branch = activeBranch || process.env.NEXT_PUBLIC_TINA_BRANCH || // custom branch env override - process.env.NEXT_PUBLIC_VERCEL_GIT_COMMIT_REF || // Vercel branch env process.env.HEAD; // Netlify branch env if (!clientId || !branch) {