From the course: Learning Next.js

Unlock the full course today

Join today to access over 24,600 courses taught by industry experts.

Connect and deploy your project

Connect and deploy your project

From the course: Learning Next.js

Connect and deploy your project

Now the step is to connect and deploy your project. So we're going to follow the instructions here which is to select a git repository, import it and then follow the instructions on the next screen and click deploy. So let's do that. I'm going to select this GitHub repository which is Blog Next.js. Click Import then click Deploy. And we're just going to wait while this is being deployed. So first it's going to run through the building: building compiling and building the projects, then deployment and finally assigning custom domains if this is available. All right then looks like we've got an error. So we're going to check this one out before we continue. And looks like we have a compiling error because we ran into a type which is missing. So the recommendation is always to run 'npm run build' locally before you actually try to deploy your projects to the cloud. So this is what we're going to be doing is to run this command locally first. So let's go back to our projects and we're…

Contents