You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I answered in this issue vercel/next.js#56869, adding a custom runtime breaks the dynamic routes when the app is deployed to Vercel.
I found the below solution, in case anyone faces this problem.
Even though this Fast API example doesn't contain dynamic routes, it might still be useful to add { source: "/api/:path*", destination: "/api/:path*" } to the next config rewrites, like this: