README.md
Lakebed app
A monorepo for independent Lakebed sites. Each site lives in apps/ and has its own code, tests, and deployment binding.
Sites
| Directory | Site | Hosted URL |
|---|---|---|
apps/who-did-it | Who did it!? | https://whodidit.lakebed.app |
Development
From the repository root:
| 1 | npm install |
| 2 | npm run dev |
| 3 | npm run typecheck |
| 4 | npm test |
| 5 | npm run build |
dev starts Who did it!? on port 4317. Build, typecheck, and unit tests run across the sites that define those scripts. Run npm run test:e2e when browser testing is requested.
To target one site, use npm run build --workspace who-did-it, or run its package scripts from inside apps/who-did-it. pnpm also supports the workspace through pnpm-workspace.yaml.
Adding a site
Create a separate capsule under apps/<site-name> with a unique package name. Keep its client, server, shared code, tests, and lakebed.json in that directory. Give local dev servers distinct ports when running several sites at once.
Each site deploys independently. After explicit deployment approval, run the Lakebed deploy command from that site's directory. Local .lakebed state and environment files are ignored by Git.