[Step by Step] Deploy NextJS on Ubuntu Digital Ocean (2 NextJS Apps on one server)

In this video you’ll learn how to host a NextJS app on an Ubuntu server from scratch. We’ll use Digital Ocean, not the digital ocean apps platform. You don’t only have to host NextJS on Vercel or Netlify! This is a wonderful option because with your own server you can host multiple NextJS apps on the same server. You can even host a MySQL database and even another backend service on the same server. While Vercel is a great option for NextJS because they created it, keep in mind Vercel is a hosting company where you can host not only NextJS but many other technologies. NextJS itself is open source and only needs a server running Node JS. You can copy the full syntax from the video from the Gists below: NGINX config file Gist: #file-ubuntu-nextjs-nginx-config-file Terminal Commands: (I also placed all the terminal commands I ran in a Gist as well) #file
Back to Top