DEV Community

Discussion on: Adding MongoDB (Mongoose) to Next.js APIs

Collapse
 
raphaelchaula profile image
Raphael Chaula

Hi, By default next.js supports API routes nextjs.org/docs/api-routes/introdu... you can start with that link, they are inside /pages/api folder.

But you can create your own server (custom) and decide for yourself how you want your directory structure to be here nextjs.org/docs/advanced-features/...

Thanks