Building a Canasta App with Our House Rules, Day 5: Homefelt Goes Live
Saturday ended with seven pull requests for the marketing site waiting for me. Sunday started with merging them, and ended with the site and the game on the internet, under a new name.
Putting it online
I merged the site’s four foundations and three pages first thing in the morning. Because the three pages were built in parallel, none of them linked to the others yet. A small pull request joined them up (#123).
The next one (#124) had everything Vercel needs to build both parts: a web/vercel.json for the game, and a script that installs Rust on Vercel’s build machines. The web game runs the Rust rules engine compiled to WebAssembly, so the build has to compile the engine before it can build the game. The script checks what is already installed and only adds what’s missing, so it runs the same on my Mac.
Then came the part an agent couldn’t do. Claude’s Vercel connection couldn’t create projects, so I created them myself in the Vercel dashboard.
My first try was wrong. I had one project, and when I pointed it at the game’s folder, the game replaced the site at the site’s address. The fix was two projects from the same repo, one for the site and one for the game, each pointing at its own folder.
Before calling it done, we checked it in a browser: on the site, “Play in your browser” opens the game, and a solo game deals with no errors.
So, by the afternoon, both were live on preview addresses: the site at homefelt.vercel.app and the game at homefelt-play.vercel.app. That closed the first checkpoint of the site.
Homefelt, all of it
On Saturday, Homefelt was the name of the marketing site. On Sunday I decided it’s the name of the whole thing: Homefelt is the suite, and Canasta is its first game.
That meant a rename (#126), and the old name was in more places than the code:
- The GitHub repo, from
canastatohomefelt, and the project board. - The folders on my Mac and my notes.
- The platform’s own names: the server’s settings, the sign-in cookie, the databases and the keys the web game uses to store things in the browser. Saved games and settings move over to the new names automatically, so nothing is lost.
- The app ID, now
dev.edsancha.homefelt.canasta. For now it’s one app per game. A new note,docs/architecture.md, describes what belongs to a game and what the platform shares, so the games can live in one Homefelt app later without starting over.
The game’s own code keeps its Canasta names. The rules engine is still the Canasta rules engine.
A rename that touches sign-in is a security change, so it got a security review like the others. The review checked that every renamed setting fails closed: a sign-in token from the old name is refused, and the old cookie is ignored, rather than either one quietly still working.
Domains
With the name settled, I bought two domains: homefelt.io, the main one, and homefelt.co, which redirects to it. The game will live at play.homefelt.io and the game server at api.homefelt.io. The code and the deploy notes already point there (#127).
Attaching them took three passes. First, Namecheap: homefelt.io had no record for the bare domain, and homefelt.co still had Namecheap’s parking page in the way. Then Vercel, which had quietly set things up backwards: it suggests redirecting the bare domain to www whenever you add one, so homefelt.io sent everyone to www.homefelt.io, and the site answered at three different addresses. I flipped it in the dashboard. Now homefelt.io serves the site, and www.homefelt.io, homefelt.co and www.homefelt.co all redirect to it, keeping the path, so www.homefelt.co/canasta lands on homefelt.io/canasta.
The last check was the one that matters: in a browser, “Play in your browser” on homefelt.io opens play.homefelt.io, and a solo game deals. My own Mac kept showing homefelt.co as down for a while afterwards. It had cached the old parking address; my phone saw the right one straight away.
Making room for the second game
With the game on its own address, I asked what adding a second game would do to it. Today play.homefelt.io is Canasta: every page, and the engine, belong to one game.
The answer became a decision. play.homefelt.io turns into a small Homefelt home: a card per game, your online tables across games, and sign-in. Canasta moves to /canasta, and the site’s Play buttons go straight there, so nobody gets an extra click. The links that matter most stay where they are: an invite (/join/…) or a table (/table/…) my family shares today keeps working after a second game exists, because those are platform pages that send each table to its game. Each game’s engine loads only on that game’s pages, so the home stays light.
The server doesn’t change yet. Tables get a game id when there’s a second game to tell apart, not before. An agent is building the web side now (#130).
The pull request that looked fine
Dependabot opened an upgrade for the site to TypeScript 7 (#122). It looked mergeable, but only because GitHub Actions has been down since Day 2, so no checks ran on it.
So it was installed locally instead, and the install failed. Astro’s type checker only supports TypeScript 5 and 6. I closed the pull request. A follow-up (#128) tells Dependabot to skip TypeScript’s major versions for the site, and the spec now says when to upgrade: once Astro’s type checker lists TypeScript 7.
This is the Day 2 lesson from the other side. With CI down, “no failing checks” means nothing. Local verification is the gate, for Dependabot’s pull requests too.
Playing it
At the end of the day, I played a full game on the web. Same rules engine, same computer players as on Day 2, but now on a public address instead of my Mac, one link away for anyone in the family.
What’s next
- Ship the per-game routes and the Homefelt home on play.homefelt.io (#130).
- Hosting the game server (#50). That unlocks online play and real sign-in outside my Mac.
- The site’s second checkpoint: rules pages generated from the rule sets, how to play, help, about, and a blog. That blog is where this diary is meant to end up.
What I learned on day 5
Defaults are decisions someone else made. Vercel’s redirect to www was a sensible default and the opposite of what I wanted; checking where each address actually ends up caught it.
Some steps are still mine. The agent couldn’t create the Vercel projects, and I got the first try wrong on my own. Fixing it was easy because the config was already in the repo.
A name spreads further than you think. It was in the repo, the board, my folders, my notes, cookies, databases and storage keys. Renaming early, before anyone has an account, made it cheap. Later, it would have meant moving real people’s data.
Green isn’t the same as checked. A pull request with no checks looks exactly like one that passed them.
Five days in, my family can open a link and play. Not online with each other yet, and not on the App Store. But it’s a real game, on the real internet, by our rules.