I built a nextjs 14 application using its api route functionality to build a backend service that send email to whoever register on the platform. Everything works fine on local but if the deployed version to netlify isn’t working.
@lab1234 Have you added a api endpoint env variable? You need to specify the base url of site on production for the api. You can add the variable in Netlify, and put it in .env locally.
Thank you @hrishikesh
Actually I set the export to output in the next config file, which I later found out that its only building a client side codes for deployment.
So I commented that out and set publish folder to .next but the application is not coming up even after successful deployment. Opening the URL shows not found.
And before it was working only the API route was not found.
Your deploys after the 23rd have all failed. In the deploy on the 23rd, you still had the config set to out, is my understanding. Did you try to fix the error being reported in your latest logs?
I am facing the same issue, if you find a way, please do share. It was all working fine. I deployed it was working then later when I checked again the API was unresponsive.