Page not found for NextJS API

I’ve deployed a NextJS application with public API endpoints. However, I’ve noticed that paths such as api/something.ts will work, while paths that include a folder in between (e.g., api/v1/something.ts) return a 404. These paths work fine on Vercel, why isn’t it working with Render?

Hey Dimitri,

Thanks for reaching out.

If you could share some real-world examples of the issue you are experiencing that may help us troubleshoot it with you, e.g. any logs/errors/output, specific URLs, service name/ID, reproduction steps, etc. If you don’t want to share these details on the community forum, please feel free to raise a ticket with support@render.com

Kind regards

Alan

Appreciate the response! I re-deployed my app and it all seems to work now, so not sure I can recreate the issue (or if it was an issue in the first place!)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.