Skip to content

ci: auto-trigger Vercel rebuild when redirects.yml changes#1105

Merged
blakecduncan merged 3 commits intomainfrom
blake/dx-2428-rebuild-on-redirects
Mar 5, 2026
Merged

ci: auto-trigger Vercel rebuild when redirects.yml changes#1105
blakecduncan merged 3 commits intomainfrom
blake/dx-2428-rebuild-on-redirects

Conversation

@blakecduncan
Copy link
Contributor

@blakecduncan blakecduncan commented Mar 5, 2026

Summary

  • Adds a GitHub Actions workflow that triggers a Vercel deploy hook whenever content/redirects.yml changes on main
  • Redirects are only evaluated at Next.js build time, so a redeploy is required for changes to take effect
  • Prevents false failures in the link checker caused by stale redirects

Prerequisites

  • VERCEL_DEPLOY_HOOK_URL must be added as a repository secret (deploy hook: redirects-rebuild)

Test plan

  • Verify VERCEL_DEPLOY_HOOK_URL secret is set in repo settings
  • Merge a test redirect change and confirm the workflow triggers a Vercel rebuild

Resolves DX-2428

🤖 Generated with Claude Code

Redirects are only evaluated at Next.js build time, so changes to
content/redirects.yml require a redeploy to take effect. This adds a
workflow that triggers a Vercel deploy hook on push to main.

Resolves DX-2428

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@blakecduncan blakecduncan requested a review from a team as a code owner March 5, 2026 20:49
@github-actions
Copy link

github-actions bot commented Mar 5, 2026

🔗 Preview Mode

Name Status Preview Updated (UTC)
Alchemy Docs ✅ Ready 🔗 Visit Preview Mar 5, 2026, 9:05 PM

@github-actions
Copy link

github-actions bot commented Mar 5, 2026

🔍 Link Check

Status: ⏭️ Skipped (no content changes)

View workflow run

Addresses GitHub Advanced Security finding — limits the default
GITHUB_TOKEN permissions since this job only needs to run curl.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@blakecduncan blakecduncan merged commit 61ef774 into main Mar 5, 2026
8 checks passed
@blakecduncan blakecduncan deleted the blake/dx-2428-rebuild-on-redirects branch March 5, 2026 21:05
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.

2 participants