Module 5 · About 60 minutes
ReadyVercel as the front door
A personal page for your companion, live on a web address, with secrets kept out of your code.
Lesson 5.1 · 5 min
What a front door is for (and when to skip it)
Your companion already works without a website. A front door is optional: a small page that shows your brief, your current focus or a read-only view of your memory, reachable from your phone.
Lesson 5.2 · 20 min
Deploy a small personal page
- Sign up at vercel.com and choose the Hobby plan. When asked, sign in with your GitHub account.
- Click Add New, then Project, and import the private "my-companion" repository from Module 4.
- Add a file called index.html to the repository with a heading and two short paragraphs about your companion. Commit it.
- Back in Vercel, accept the defaults and click Deploy.
- Open the address Vercel gives you (it ends in .vercel.app) and check your page appears.
- Edit index.html on GitHub, commit, and watch Vercel publish the change automatically.
Lesson 5.3 · 10 min
Environment variables: where secrets live
A secret is anything that grants access: an API key, a token, a password. Secrets never go in a file in your repository, even a private one. They go in environment variables, which are stored in Vercel and handed to your page only when it runs.
- Open your project in Vercel and go to Settings, then Environment Variables.
- Add a name (for example COMPANION_TOKEN) and its value.
- Choose which environments can see it. Start with Production only.
- Redeploy so the new variable takes effect.
- Names written in code, values written in Vercel. Never the other way round.
- If a secret ever reaches GitHub, treat it as stolen: revoke it at the provider and create a new one.
- Variables whose names start with NEXT_PUBLIC_ are sent to every visitor's browser. Never put a secret in one.
Lesson 5.4 · 10 min
Connect your own domain
- In Vercel, open the project, then Settings, then Domains.
- Type the domain or subdomain you want, for example companion.yourname.com.
- Vercel shows the DNS record to add. Copy it exactly.
- Log in where you bought the domain and add that record in its DNS settings.
- Wait. DNS can take from minutes to a day. Vercel marks the domain valid when it sees the record.
A subdomain is the easiest first choice: it needs one record and leaves your main website untouched.
Lesson 5.5 · 5 min
Know the free-plan limits
Hobby plans also have usage limits that Vercel adjusts over time. A small personal page stays well inside them, but check the official limits page rather than trusting a number in a course.
Checkpoint: you are done when...
- Your page is live at a .vercel.app address.
- A change on GitHub publishes automatically.
- Any key or token is stored as an environment variable, not in a file.
- You know whether your use counts as personal and non-commercial.
Common mistakes
- Assuming a private repository means a private website.
- Pasting a key into index.html "just to test".
- Using the Hobby plan for something that earns money.
- Adding a DNS record with a typo and giving up before it is checked again.