Skip to main content
Mubienclarity for what comes next
Lesson 5

Put it on the internet

Everything so far has happened at localhost:3000, and it is worth being clear about what that address actually is: a door that only opens from inside your own machine. Close the laptop and it is gone. Send the link to a friend and they get an error.

This lesson closes that gap. A simple app can be quick to deploy; account setup or build errors can take longer.

Deployment guidance checked on 23 November 2026 against the official CLI, Git deployment, and deployment protection documentation.

First, build it once yourself

Before deploying anything, run the production build on your own machine:

Terminal
$npm run build

Up to now you have been running the development server, which is forgiving on purpose so it does not interrupt you. The production build is strict. It is the same check the deploy will run, so running it here means finding problems on your machine, where you have Claude Code and your files, rather than in a log on a server.

If it fails, that is the system doing its job. Hand it over the way you learned in the last lesson:

You, in plain words

npm run build failed. Here is the full output: [paste everything]. Can you fix the errors so it builds?

When it finishes without errors, try the app locally and check its main interactions before deploying.

A build is one check

A successful build does not prove the deployed app works. Hosting settings, environment variables, and connected services can differ. After deployment, test the real URL and check that private keys stay on the server.

Deploy it

We are using Vercel. Its Hobby plan is free within its limits for personal, non-commercial projects. Check the current plan and Hobby terms before hosting a commercial app. Connected services may need environment variables and their own billing.

From your project folder, in the terminal that is not running the dev server:

Terminal
$npx vercel

The first time, it opens your browser to sign in. Signing in with GitHub is the easiest route and pays off in a minute. Then it asks a handful of setup questions: which account, what to call the project, which folder. Review each answer before confirming. Make sure the account, project, and folder are correct. Vercel can detect Next.js, but you should still check the proposed settings.

Then it uploads, builds, and prints a URL.

Open it. That is your app, on the internet, reachable by anyone. That first load is a good moment and I would not rush past it.

Preview versus production

The CLI creates a preview by default. Preview does not automatically mean private: check Deployment Protection before putting sensitive content there. Use --prod to deploy to your production domain. Deployment URLs and rollback options depend on retention and project settings.

Terminal
$npx vercel --prod

That gives you the address to actually share.

Send it to one person

Do this before you polish anything. Text the link to someone and ask them to try it.

You will learn more in that ninety seconds than in another evening of tinkering. They will tap something you never tap, on a phone screen narrower than yours, and it will be immediately obvious what to fix first. Everything you would have guessed at is now just visible.

It also changes your relationship to the project. It stops being an exercise and becomes a thing that exists.

Make new versions deploy themselves

Running a command every time gets old. Since your project already had git set up in lesson 2, connecting it to GitHub gets you automatic deploys:

You, in plain words

Help me push this project to a new GitHub repository.

Then on vercel.com, import that repository. With automatic deployments enabled, pushes to the configured production branch update the live site; other branches normally create previews. Check which branch is production before pushing. That is the loop I use for this site.

Give it a real name, if you want one

my-first-app-a1b2c3.vercel.app is a perfectly good address. A custom domain can make it easier to remember. Check both the introductory price and the renewal price before buying.

The path is short: buy a domain from any registrar, add it to your project in the Vercel dashboard under Settings and then Domains, and copy the DNS records it gives you back to the registrar. Then wait. DNS changes are usually live in minutes but are allowed to take up to a couple of days, and refreshing furiously does not help.

If the domain does not load

Check the domain status and DNS records in Vercel first. If it works on mobile data but fails on another network, a security filter may be involved. Read the browser error and investigate; waiting alone will not fix a configuration error.

What you can do now

Look back at where you started this course. You can now:

  • Cut an idea down to something that reaches a finish line
  • Create a real app and run it on your own machine
  • Build in slices, checking the browser after each one
  • Keep checkpoints so a bad hour costs you ten minutes
  • Read an error, hand it over well, and verify the fix yourself
  • Put it all on the internet at an address you can share

That is the entire loop I used for Fable, for this site, and for every small tool I have built since. The projects get bigger. The loop does not change.

Before you close the laptop

  • npm run build passes with no errors
  • You have run npx vercel --prod and have a live URL
  • You have opened that URL on your phone
  • You have sent it to one real person

Where to go next

Build the second one. Not a bigger version of the first, and not the four month idea you cut back in lesson 1. Another small thing, ideally something you will actually use.

The second app is where it stops feeling like following instructions. You will move faster, recognise the errors, and catch yourself making decisions rather than looking them up. That is the point where this becomes a skill you own rather than a tutorial you completed.

The thing nobody told me is that shipping is a habit, not an achievement. The first live URL is the hard one, because it is the one where you find out you can. After that it is just repetition, and repetition is a much easier problem than doubt.

You have a real thing on the internet with your name on it. Most people who say they want to build something never get here. Go and build the next one.