fix: Preserve sign-out redirect during Worker migration - #62
Merged
Merged
Conversation
The sign-out URL now redirects permanently to its canonical page on Workers, matching the public Pages response. Live parity checks cover the route so the status remains consistent through cutover. Co-authored-by: Codex <noreply@openai.com>
WillieCubed
had a problem deploying
to
worker-preview
September 24, 2026 16:48 — with
GitHub Actions
Failure
Only the slashless URL redirects permanently. The canonical page now serves normally, including in the long-text accessibility check. Co-authored-by: Codex <noreply@openai.com>
WillieCubed
had a problem deploying
to
worker-preview
September 24, 2026 16:56 — with
GitHub Actions
Failure
Before production moves to Workers, compare the candidate with the Pages hostname. Once Workers serves production, skip that stale reference and rely on preview browser acceptance. Co-authored-by: Codex <noreply@openai.com>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TL;DR
Keep the public
/sign-outredirect permanent when the website runs on Cloudflare Workers.Overview of Changes
The Pages site responds to
/sign-outwith a 308 redirect to/sign-in. The Worker candidate returned 307, leaving one live response mismatch during the Pages-to-Workers cutover. This change makes the Worker response match Pages and adds the route to the live parity check. It does not change where sign-out sends visitors or move production traffic.The current branch passes
pnpm check. The live comparison against the currently deployed Worker still reports the expected mismatch until this change is deployed.Worker preview CI also stops treating the live Worker as a Pages reference. Its pre-cutover comparison uses the Pages hostname, and after Workers is production the preview browser suite remains active without comparing changes against an older release.
Follow-ups
After this fix reaches
main, deploy the verified Worker version, repeat the live comparison, and complete the apex andwwwdomain transfer from Pages while retaining the Pages deployment for rollback.