Skip to content

fix(router): empty router issue and added mapping#1979

Open
tylersayshi wants to merge 3 commits intomainfrom
fix-blank-wildcard
Open

fix(router): empty router issue and added mapping#1979
tylersayshi wants to merge 3 commits intomainfrom
fix-blank-wildcard

Conversation

@tylersayshi
Copy link
Member

fixes #1978

@vercel
Copy link

vercel bot commented Mar 6, 2026

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

Project Deployment Actions Updated (UTC)
waku Ready Ready Preview Mar 6, 2026 6:03am

Request Review

@codesandbox-ci
Copy link

codesandbox-ci bot commented Mar 6, 2026

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 6, 2026

Open in StackBlitz

npm i https://pkg.pr.new/waku@1979

commit: 1686598

Comment on lines +678 to +679
// If this pathname is also a directory prefix for another static API
// route, emit as pathname/index to avoid file-system conflicts.
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure about this. What use cases is this trying to cover?

Copy link
Member Author

Choose a reason for hiding this comment

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

The one from #1978. It supports the empty staticPath as a / on /[...wildcard]

Copy link
Member

Choose a reason for hiding this comment

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

Hmm, but adding /index here seems wrong. Any other solution?

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.

Static API route with wildcard causes file-system conflicts

2 participants