NextJS dynamic page with catch all route overrides all API routes
I've run into some trouble when using a catch all page routes on the top level (e.g.
/pages/[...slug].tsx
/pages/[...slug].tsx
). When trying to call any API route, it seems to route incorrectly to the catch all page instead of hitting the API endpoint.
I've tried doing local dev/builds and deployed to Vercel with the same codebase but haven't been able to reproduce it in all other circumstances, so it looks like it only affects