Next.js API routes

Hello,

I’m currently facing a strange issue while using Next.js / React.

I’ve created API routes in Next.js as it should (as far as I know :smiley: ) and in local development mode everything seems to work find, until I deploy? The routes don’t work and I’m not getting any error logs.

Using Next 14.2.3 and my Site ID is 0e3356e3-6bc6-4270-a8ce-1ac9b4b2aa74.

Gr,
Andy

A URL or steps to reproduce could be helpful. Asking because I checked your site and can’t find an obvious way to trigger any API.

@hrishikesh in the meanwhile I found the solution. My API routes were rendered as static content instead of server side.

So it wasn’t Netlify related.