Skip to content

fix: remove stale Vercel env var references - closes #2648#2649

Closed
github-actions[bot] wants to merge 1 commit into
mainfrom
fix/remove-stale-vercel-references-d061d7dd96a2e6d0
Closed

fix: remove stale Vercel env var references - closes #2648#2649
github-actions[bot] wants to merge 1 commit into
mainfrom
fix/remove-stale-vercel-references-d061d7dd96a2e6d0

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Summary

Closes #2648

SSW Rules is hosted on Azure (not Vercel). This PR removes stale Vercel references from the codebase.

Changes

  • utils/tina/get-tina-endpoint.tsx — removed NEXT_PUBLIC_VERCEL_GIT_COMMIT_REF from the branch detection fallback chain; NEXT_PUBLIC_TINA_BRANCH is set explicitly in Azure CI so this fallback was never needed
  • scripts/generate-archived-rules.js — same cleanup for the getBranch() helper
  • .env.example — removed VERCEL_ENV=preview and updated the comment to reflect GitHub/Azure as the only CI platforms

⚠️ Manual action still required

The Vercel GitHub App integration is still connected to this repository and is the root cause of the failing build checks seen in PRs (e.g. #2646). This cannot be removed via a code change — a maintainer needs to:

  1. Go to the [Vercel dashboard]((vercel.com/redacted) → project ssw-rules → Settings → Git → disconnect the GitHub integration, or
  2. Go to GitHub → Repository Settings → Integrations → Vercel app → remove access to this repository.

Once disconnected, the Vercel bot will stop commenting on PRs and the failing Vercel check will disappear.

Testing

  • Branch detection still works: Azure CI sets NEXT_PUBLIC_TINA_BRANCH explicitly (see build-and-deploy.yml line 191), so removing the Vercel fallback has no runtime impact.
  • No other files reference VERCEL_ENV or NEXT_PUBLIC_VERCEL_GIT_COMMIT_REF.

Generated by Issue Triage for issue #2648 · ● 683.9K ·

- 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>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ssw-rules Error Error May 27, 2026 7:29am

@Aibono1225 Aibono1225 closed this May 29, 2026
@Aibono1225 Aibono1225 deleted the fix/remove-stale-vercel-references-d061d7dd96a2e6d0 branch May 29, 2026 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🧹 Remove stale Vercel build workflow for SSW Rules

1 participant