nitro
nitro copied to clipboard
404 Cannot find any route matching, when adding a child route.
Environment
System:
OS: Linux 5.15 Zorin OS 16.3
CPU: (4) x64 Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz
Memory: 7.39 GB / 15.51 GB
Container: Yes
Shell: 5.8 - /bin/zsh
Binaries:
Node: 20.10.0 - ~/.nvm/versions/node/v20.10.0/bin/node
Yarn: 1.22.21 - ~/.nvm/versions/node/v20.10.0/bin/yarn
npm: 10.2.3 - ~/.nvm/versions/node/v20.10.0/bin/npm
pnpm: 8.14.1 - ~/.local/share/pnpm/pnpm
bun: 1.0.26 - ~/.bun/bin/bun
Browsers:
Chrome: 122.0.6261.69
Reproduction
https://github.com/stackblitz-labs/pkg.pr.new/pull/32/files#diff-adc28993ce942ac1009ac0fabadc03c9133c846eb1c2cba6f57847a5921b917d
Describe the bug
Thank you for the amazing library.
I had this route: server/routes/[owner]/[repo]/[packageAndRefOrSha].get.ts
Which was working properly. Now I added this too server/routes/[owner]/[repo]/[npmOrg]/[packageAndRefOrSha].get.ts
and it's working (redirects to the route above), but it breaks the previous route I mentioned above. I wonder if I'm doing something wrong regarding the reproduction.
Additional context
No response
Logs
No response