Skip to content

fix(vercel): always add url to src regex for isr routes#3595

Merged
pi0 merged 1 commit intov2from
fix/vercel-isr-fixed
Sep 26, 2025
Merged

fix(vercel): always add url to src regex for isr routes#3595
pi0 merged 1 commit intov2from
fix/vercel-isr-fixed

Conversation

@pi0
Copy link
Member

@pi0 pi0 commented Sep 26, 2025

Resolves nuxt/nuxt#33316

In nitro 2.12.6, we have introduced fixes for overlapping route rule functions + better names.

This revealed an undicovered issue where in past ISR route for /path would generate a function called /path.func and even without ISR path rewrites ($url param) it was working as name of function and path were same.

This PR fixes issue by 1) always normalizing rou3 patterns to PCRE and 2) Always wrapping regex with $url matcher.

@vercel
Copy link

vercel bot commented Sep 26, 2025

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

Project Deployment Preview Comments Updated (UTC)
nitro.build Ready Ready Preview Comment Sep 26, 2025 5:49pm

@pi0 pi0 changed the base branch from v3 to v2 September 26, 2025 17:48
@pi0 pi0 changed the title fix/vercel isr fixed fix(vercel): always add url to isr routes src Sep 26, 2025
@pi0 pi0 requested a review from danielroe September 26, 2025 17:51
@pi0 pi0 marked this pull request as ready for review September 26, 2025 17:53
@pi0 pi0 changed the title fix(vercel): always add url to isr routes src fix(vercel): always add url to src egex for isr routes Sep 26, 2025
@pi0 pi0 changed the title fix(vercel): always add url to src egex for isr routes fix(vercel): always add url to src regex for isr routes Sep 26, 2025
@pi0 pi0 merged commit a85002c into v2 Sep 26, 2025
2 checks passed
@pi0 pi0 deleted the fix/vercel-isr-fixed branch September 26, 2025 17:54
@pi0
Copy link
Member Author

pi0 commented Oct 7, 2025

Fix is released in nitropack@2.12.7

@ps-20x
Copy link

ps-20x commented Oct 8, 2025

I updated nitropack to version 2.12.7 (double checked in my package-lock.json) but for me the issue still persists.

@pi0
Copy link
Member Author

pi0 commented Oct 8, 2025

@ps-20x would you please open a new issue with reproduction so we can track and investigate 🙏🏼

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