Skip to main content

Frontend Deployment

In this section we will deploy our frontend code to a hosting provider. Our frontend is developed using ReactJS and NextJS, so we need a NextJS compatible hosting provider.

info

There are 2 ways to deploy frontend.

  • Managed frontend hosting providers like Vercel, Netlify, Render etc. It's very easy to use, and most provider offers free option.
  • Self managed hosting, where you can deploy the build file directly.

Managed NextJS Hosting Using GitHub

Self-Managed Hosting

  • Run build command in your frontend code next build
  • It will provide you with a build file.
  • Then follow your hosting providers guideline to deploy the build file.