Skip to content

feat: redirect the Cloudflare Pages domain to www.uplb.tools - #17

Merged
smmariquit merged 1 commit into
mainfrom
feat/pages-redirect
Aug 6, 2026
Merged

feat: redirect the Cloudflare Pages domain to www.uplb.tools#17
smmariquit merged 1 commit into
mainfrom
feat/pages-redirect

Conversation

@smmariquit

Copy link
Copy Markdown
Collaborator

uplbtools.me turns out to be served by Cloudflare Pages (deploy-cloudflare.yml), not the Vercel project, so #16's vercel.json redirect never fires on it. Pages honors public/_redirects: every request 301s to https://www.uplb.tools with the path preserved. The vercel.json rule stays as a guard in case the domain ever moves onto Vercel.

uplbtools.me is served by the uplbtools-me Cloudflare Pages project, not
Vercel, so the vercel.json host redirect never fires there. Pages honors
the _redirects file; this sends every request to the new canonical origin
with the path preserved.
@vercel

vercel Bot commented Aug 6, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
uplbtools-me Ready Ready Preview Aug 6, 2026 1:55pm

Request Review

@smmariquit
smmariquit merged commit 910b490 into main Aug 6, 2026
1 of 2 checks passed
@smmariquit
smmariquit deleted the feat/pages-redirect branch August 6, 2026 13:55
Comment thread public/_redirects
@@ -0,0 +1 @@
/* https://www.uplb.tools/:splat 301

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This rule is unconditional on host, but the same Cloudflare Pages project (uplbtools-me) also serves PR preview deployments per .github/workflows/deploy-cloudflare.yml (pages deploy dist --project-name=uplbtools-me --branch=pr-${{ github.event.pull_request.number }}). Cloudflare Pages _redirects rules apply to every hostname tied to the project, including pr-N.uplbtools-me.pages.dev, so every preview deploy will now 301 straight to www.uplb.tools before rendering, making PR previews on Cloudflare unviewable.

@claude

claude Bot commented Aug 6, 2026

Copy link
Copy Markdown

One finding worth a follow-up (left inline): the blanket /* → https://www.uplb.tools/:splat 301 in public/_redirects applies to the whole Cloudflare Pages project, which also hosts PR preview deployments (pr-N.uplbtools-me.pages.dev per deploy-cloudflare.yml). That means every preview build will 301 to production before rendering, breaking the ability to preview changes via Cloudflare. Worth scoping the redirect or verifying preview links still work.

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.

1 participant