We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.1.17
Darwin 23.5.0 x86_64 i386
Create a bun project with FileSystemRouter:
Files created (narrowed down):
Create file on process.cwd() - for example test.js:
test.js
const router = new Bun.FileSystemRouter({ style: "nextjs", dir: process.cwd() + '/src/pages', }); const route = router.match('http://localhost:3001/admin/6679fbe17b41431a977163fd/providers/create'); console.log(router); console.log(route);
My expectation is the definition of the documentation. https://bun.sh/docs/api/file-system-router
MatchedRoute { filePath: "/xxxxxx/src/pages/admin/[businessId]/providers/create.tsx", kind: "dynamic", name: "/admin/[businessId]/providers/create", params: { businessId: "6679fbe17b41431a977163fd", }, pathname: "/admin/6679fbe17b41431a977163fd/providers/create", query: {}, scriptSrc: "admin/[businessId]/providers/create.tsx", src: "admin/[businessId]/providers/create.tsx", }
MatchedRoute { filePath: "/xxxxxx/src/pages/admin/[businessId]/providers/create.tsx", kind: "dynamic", name: "/admin/[businessId]/providers/create", params: { businessId: [ "6679fbe17b41431a977163fd", "6679fbe17b41431a977163fd" ], }, pathname: "/admin/6679fbe17b41431a977163fd/providers/create", query: { businessId: [ "6679fbe17b41431a977163fd", "6679fbe17b41431a977163fd" ], }, scriptSrc: "admin/[businessId]/providers/create.tsx", src: "admin/[businessId]/providers/create.tsx", }
src/pages/admin/[businessId] Works as expected
src/pages/admin/[businessId]/providers/create Does not work as expected
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What version of Bun is running?
1.1.17
What platform is your computer?
Darwin 23.5.0 x86_64 i386
What steps can reproduce the bug?
Create a bun project with FileSystemRouter:
Files created (narrowed down):
Create file on process.cwd() - for example
test.js
:What is the expected behavior?
My expectation is the definition of the documentation.
https://bun.sh/docs/api/file-system-router
What do you see instead?
Additional information
src/pages/admin/[businessId]
Works as expected
src/pages/admin/[businessId]/providers/create
Does not work as expected
The text was updated successfully, but these errors were encountered: