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) {