Deploying MERN app on Vercel
Naveen Bantu
|
14 steps
|
3 minutes
Vercel
1
Login/Sign-up and go to your Vercel Dashboard
2
Click on "Add New..." and select "Project" category
3
Select your MERN application Git repository and Click "Import"
4
Click "Build and Output Settings" and check the build configuration
5
Click "Environment Variables"
6
Add all the environment variables, both "client" and "api" related.
7
Click on "Deploy"
8
Once deployed, continue to Project Dashboard
9
Copy the deployed URL"mockmeet-vercel-demo.vercel.app"
10
Click "Settings"
11
Select "Environment Variables"
12
Add the deployed URL along with "/api" ("mockmeet-vercel-demo.vercel.app/api") as an Environment Variable.
13
Click "Deployments"
14
Finally re-deploy by clicking "Redeploy" on the last Deployment.