From the course: Master Next.js by Building Scalable Apps with Routing, Databases, and Performance

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Deploying client app on Vercel

Deploying client app on Vercel

In this lecture, we will deploy the client application. So let me open the dashboard of Vercel. I'll create a new project for my store client will select the project option from the add new drop down. So now this is going to redirect me to the import git repository section. Here I will import the my store client repo and it will redirect me to the configure project section. Here the project name, framework and root directory fields are prefilled. So we will leave them as it is. And let's go ahead and configure the environment variables. So let me go to the client directory and open the dot ENV file. Here we have base URL, stripes, publishable key, and the stripes secret key. So let me add the base URL where the value of the base URL will be the hosted URL of the admin section. So let me copy the admin URL and paste it as the value of base URL. And let me quickly add other variables. Alright, we have configured the project. So let me deploy the project by clicking on the Deploy button.…

Contents