DEV Community

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

Collapse
 
raphaelchaula profile image
Raphael Chaula

You can host the website on vercel, it will work just fine, I used MongoDB Atlas, so you can host MongoDB anywhere.

Here is what you should not do;
Don't export the Next.js app, it has to be server side.

Collapse
 
regisnut profile image
Regisnut

Ouah, nice to hear ! I will use MongoDB atlas too with mongoose.
But I'm still a noob, I don't know what is export a Next.js App?

Thread Thread
 
raphaelchaula profile image
Raphael Chaula

Export is when you want to build a Next.js app into static HTML file.
You can read more about it here nextjs.org/docs/advanced-features/...