Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 0 additions & 45 deletions .github/workflows/pages.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@ on:
- "web/**"
- "vercel.json"
- ".github/workflows/web.yml"
- ".github/workflows/pages.yml"
pull_request:
paths:
- "web/**"
- "vercel.json"
- ".github/workflows/web.yml"
- ".github/workflows/pages.yml"
workflow_dispatch:

jobs:
Expand Down
1 change: 0 additions & 1 deletion CNAME

This file was deleted.

1 change: 0 additions & 1 deletion web/CNAME

This file was deleted.

15 changes: 12 additions & 3 deletions web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ web/
├── js/ # Engine: bench, viewer, alu emulator, forge
├── assets/pcb/alu.glb # KiCad 07_alu export (~31 MB)
├── tests/ # Custom sanity + emulator test suite
├── CNAME # tomato.tmarhguy.com
└── ATTRIBUTION.md
```

Expand Down Expand Up @@ -132,8 +131,18 @@ cd web && npm test
## Deployment

- **Live origin:** [tomato.tmarhguy.com](https://tomato.tmarhguy.com/)
- **GitHub Pages:** Publishes `web/` with `CNAME` set to `tomato.tmarhguy.com`. `.nojekyll` keeps underscored directories from being ignored.
- **Vercel:** The root `vercel.json` serves `web/` directly and runs `npm test` as the build command. Zero framework installation required.
- **Vercel:** The root `vercel.json` serves `web/` and runs `npm test` as the build. No framework, no install.
- **CI:** `.github/workflows/web.yml` runs the same sanity suite on PRs and pushes to `main`. There is no GitHub Pages workflow.

### Custom domain DNS (Namecheap)

Same pattern as `alu.tmarhguy.com`. In Namecheap → Domain List → `tmarhguy.com` → Advanced DNS:

| Type | Host | Value | TTL |
|------|------|-------|-----|
| CNAME | `tomato` | `cname.vercel-dns.com.` | Automatic |

Add `tomato.tmarhguy.com` as a domain on the Vercel project. Clear any custom domain under the repo **Settings → Pages** so GitHub stops 301ing `github.io/tomato` at a dead hostname.

---

Expand Down
2 changes: 1 addition & 1 deletion web/tests/site-sanity.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Static-site sanity for The Tomato paper.
* Pure Node — no install. Catches what breaks on GitHub Pages / Vercel:
* Pure Node — no install. Catches what breaks on Vercel / local preview:
* missing assets, dead relative links, root-absolute paths, broken JS syntax,
* missing deploy markers, and a local HTTP smoke of every HTML page.
*/
Expand Down
Loading