Excellent work on getting your website live in the last lesson! That public URL is proof that you've successfully navigated the entire process from a local file to a live product on the internet.
Now, you might be wondering what happens when you want to make a change. Do you have to go through the whole Vercel setup again? The answer is a resounding no, and that's what we'll explore today.
1. What We Are Learning
In this lesson, you will learn how Vercel's automatic deployment system works. The goal is to confirm that Vercel is configured for automatic deployments on future pushes. We will make a small change to our code, push it to GitHub, and watch as Vercel magically updates our live website without any manual intervention from us.
2. Why This Matters
This automated process is a cornerstone of modern web development, often called Continuous Deployment (CD).
Think of it this way: In your design workflow, when you update a master component in Figma, every instance of that component across all your files updates automatically. You don't have to manually replace each one. Vercel does the same thing for your website. Your GitHub repository is the "source of truth," and Vercel ensures the live site always mirrors it.
This automation is powerful because it:
- Saves time: No more manual upload or deployment steps.
- Reduces errors: It removes the risk of human error during deployment.
- Increases confidence: You can push small changes and see them go live immediately, creating a fast and reliable feedback loop.
Let's see how this connection between GitHub and Vercel enables this workflow.
How to Deploy Projects on Vercel with GitHub: A Beginner's Guide
This article, 'How to Deploy Projects on Vercel with GitHub', explains the core benefit of linking these two tools. It perfectly describes the automated process we're about to witness.
Please read the sections titled 'Auto-Deployment When You Push Code' and 'How Vercel + GitHub Automate a CI/CD pipeline'. These will give you a clear conceptual understanding of what Vercel is doing in the background.
3. Step-by-Step Instructions
Now that you understand the concept, let's prove it works with our own project.
Step 1: Check Your Vercel Configuration
First, let's confirm the setting that enables this magic. When you imported your project, Vercel automatically configured your main branch as the "Production Branch." This tells Vercel, "Any code pushed to this specific branch should be deployed to the live URL."
- Open your project in the Vercel dashboard.
- Navigate to the Settings tab.
- In the left sidebar, click on Git.
- You should see that your GitHub repository is connected and that the Production Branch is set to
main.
It will look exactly like this:

Step 2: Make a Small Code Change
Let's make a simple, visible change so we can easily confirm the update.
- Open your project folder in VS Code.
- Open the
index.htmlfile. - Find the line with your
<h1>element, which probably says "Hello World". - Change the text to something new, like:
<h1>My First Automatic Update!</h1> - Save the file (
Cmd+SorCtrl+S).
Step 3: Commit and Push the Change
Now, we'll follow the same Git process you've learned to send this change to GitHub.
- Go to the Source Control panel in VS Code (the icon with three connected dots).
- You will see your
index.htmlfile listed under "Changes." - Click the '+' icon next to the file to "stage" it.
- In the message box at the top, type a clear commit message, like
Update heading text. - Click the checkmark icon to commit the change.
- Finally, click the "Sync Changes" button at the bottom of the window to push your commit to GitHub.
Step 4: Watch Vercel Deploy
This is where the automation kicks in. You don't need to do anything else.
- Switch back to your Vercel dashboard. Go to the Deployments tab for your project.
- Within seconds of you pushing to GitHub, you should see a new deployment appear at the top of the list. Its status will say "Building".

This process is explained well in the following article.
Getting Started with Vercel: Deploy Your First Project in 5 Minutes
Let's refer to this guide, 'Getting Started with Vercel'. The section on making updates walks through exactly what you are seeing on your screen right now.
Read the section titled 'Making Updates'. It details the process of editing your code, pushing to Git, and how Vercel automatically rebuilds and deploys the change.
Step 5: Confirm the Live Update
The build should take less than a minute. Once it's finished, the status will change to "Ready".
- Go to the browser tab where you have your live website open.
- Refresh the page.
You should see your new heading: "My First Automatic Update!"
4. What Could Go Wrong
-
The live site doesn't update.
- Reason: The most common cause is that the
git pushcommand didn't complete successfully. - Fix: Go to your repository on GitHub.com and check the
index.htmlfile. Does it show your latest commit and the new heading? If not, go back to VS Code and click "Sync Changes" again. Check for any error messages in the output.
- Reason: The most common cause is that the
-
The new deployment fails in Vercel.
- Reason: You might have accidentally introduced a syntax error into your
index.htmlfile (e.g., deleted a closing>). - Fix: Vercel will show an error in the deployment logs. For now, the easiest way to fix this is to go back to VS Code, undo your change (you can use
Cmd+ZorCtrl+Z), save the file, and then commit and push again. This will trigger a new, working deployment, effectively "rolling back" the error.
- Reason: You might have accidentally introduced a syntax error into your
5. Mini Exercise
Time to put it into practice. This exercise will solidify the entire automated workflow.
- In VS Code, open your
index.htmlfile. - Find the
<p>tag (paragraph) you created earlier and change its text to: "This site updates automatically from GitHub." - Use the VS Code Source Control panel to stage, commit (with the message
Test paragraph update), and push the change. - Open your Vercel dashboard and watch the new deployment kick off and complete.
- Refresh your live URL and take a screenshot showing the updated paragraph text. This is your proof of a successful continuous deployment!
6. Checklist Before Moving Ahead
- I have confirmed my Vercel project's "Production Branch" is set to
main. - I have successfully made a code change, pushed it to GitHub, and seen it deploy automatically.
- I have verified the change is live on my public URL.
- I understand that any
git pushto themainbranch will trigger a new live deployment.
Congratulations! You have now mastered the complete, modern workflow for deploying and updating a website. This loop—edit locally, push to GitHub, and let Vercel handle the rest—is exactly what professional developers and teams use every day.
A Look Ahead
So far, we've treated the HTML and CSS code as something we just copy-paste or make minor edits to. But to effectively guide an AI to write code for you, you first need to be able to read and understand its output. In our next module, Code Literacy, we'll start demystifying HTML and CSS. You'll learn to recognize the basic building blocks of a webpage, which will prepare you to critically review and refine the code that AI generates for us later on.