Next.js Discord

Discord Forum

Only one API route working

Unanswered
Russian Blue posted this in #help-forum
Open in Discord
Russian BlueOP
We have the exact same code in two API routes one being named app/api/demo/route.ts and the other being named app/api/sendgrid/route.ts. When we run them locally they both work, but on deployment the demo one returns a 404 where as the sendgrid one works as expected. And we made sure we're calling the correct routes (example.com/api/demo)

We're using Next.JS 14 app router

3 Replies

Whiskered Screech-Owl
@Multiflora rose seed chalcid I was also having a similar issue, still haven't found a solution
(sorry for ping, need to figure this out before deadline)
Is this a common problem with v14? @aardani @European sprat not sure if you know