#Only one API route working

6 messages · Page 1 of 1 (latest)

karmic egret
#

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

urban otterBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

wispy cape
#

@iron shuttle 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? @clear pebble @tranquil root not sure if you know

dire chasmBOT