Skip to content

scripts: the /live/ redirect matches its trailing slash - #12

Merged
Himess merged 1 commit into
mainfrom
vercel-live-redirect
Oct 27, 2026
Merged

Himess merged 1 commit into
mainfrom
vercel-live-redirect

Conversation

@Himess

@Himess Himess commented Oct 27, 2026

Copy link
Copy Markdown
Owner

The /live/ redirect added in #11 never matched: Vercel matches a redirect's source strictly, and with trailingSlash: true every request arrives with its slash, which /live/:path* does not take. /live/(.*) → /app/$1 does.

Checked on the production deployment made from this branch: /live/ and /live/borrow/ answer 307 to /app/ and /app/borrow/; /live goes through /live/ first (308). Only scripts/deploy-vercel.sh changes.

🤖 Generated with Claude Code

Vercel matches a redirect's source strictly, and with trailingSlash every
request arrives as /live/...: /live/:path* never matched it, so /live/ gave
the 404 page. /live/(.*) to /app/$1 takes the slash along (checked on the
production deployment: /live/ and /live/borrow/ answer 307 to /app/ and
/app/borrow/).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Himess
Himess merged commit 73de9f9 into main Oct 27, 2026
4 checks passed
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