Open capJavert opened 1 year ago
I also have the same problem. Did you find anything ?
Nope, just broken.
Same issue here, broke an entire prod project and spent hours trying to fix it. Works well locally but not when deployed, one hack that fixed it was using a subdomain with rewrites to the api folder from the next.config.js. However, domains without a rewrite to the API folder breaks
I can confirm this is still issue in 14.1. But unfortunately like many crucial bugs like this no response still.
This is still happening in latest release. Any reply/ack?
Edit by maintainer bot: Comment was automatically minimized because it was considered unhelpful. (If you think this was by mistake, let us know). Please only comment if it adds context to the issue. If you want to express that you have the same problem, use the upvote š on the issue description or subscribe to the issue for updates. Thanks!
Link to the code that reproduces this issue
https://github.com/capJavert/nextjs-functions-break-dynamic-routes
To Reproduce
/api/pages
You will observe:
I also noticed api routes without dynamic segments work fine /api/boo.
Deployment summary also shows all the functions correctly:
Current vs. Expected behavior
When custom runtime is used inside top level
/api
directory Next.js dynamic routes break and show 404.Dynamic routes should work as expected.
Verify canary release
Provide environment information
Which area(s) are affected? (Select all that apply)
App Router, Middleware / Edge (API routes, runtime)
Additional context
No response