Next.js Discord

Discord Forum

First deploy of my Back

Unanswered
Brown bear posted this in #help-forum
Open in Discord
Brown bearOP
Hello, I'm a bit lost. I would like my back-end to function normally and not just on localhost. I want to use Vercel for deployment, and I'm completely panicked at the thought of making a mistake. So far, I've been using a .json file to write my blog articles, with no issues. However, for the sake of progress, I've switched to using a database (MongoDB). The POST and GET functions work perfectly: I write my articles from a back-office, they are then stored in a database. Afterwards, I retrieve my articles and display them correctly on my site, but only on localhost:3000. I would like this to also work outside of localhost, from my personal site space. However, I don't know how to proceed to make it work outside of localhost. Could someone assist me? This is my first back-end deployment, and I'm overwhelmed with panic.

#express

0 Replies