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 admin app on Vercel

Deploying admin app on Vercel

We have created the MySQL database and linked it with our admin application. Now it's time to deploy the admin section using Vercel. Before that, while creating the build, we need to make sure that the Prisma schema is generated on the server. So let me open the package.json file and add the command to the build attribute. I'll say Prisma generate ampersand next build. So now when the npm run build is executed, the Prisma schema will also be generated. Let's save the file and I'll push these changes to the GitHub repository. So I will add the code to staging, commit the code with the message, updated the build script and push the repo. All right, we have pushed the code in the GitHub. Now it's time to deploy the admin section using Vercel. So let me open the browser. I will start from the signup process itself. So when you click on the signup button, you get to choose your account type that is either free hobby account or the pro version. I will go with the hobby account and we have…

Contents