Local setup
Use the repository’s declared Node version (.nvmrc), package manager/lockfile, and documented scripts. Install dependencies with the lockfile workflow, then run the project’s typecheck/test/build commands before claiming a change is ready.
Do not copy production credentials into local files, terminal history, screenshots, or docs. Use approved local/test configuration. If the VPS-first guard applies to your machine/repo role, use the prescribed VPS command and stop if it denies the run; do not bypass it.
Before schema work, inspect current migration history and use a local Supabase environment for validation. Production database actions and provider changes require their own authorization.
Purpose and prerequisites
Section titled “Purpose and prerequisites”This is a safe developer setup procedure, not a production-bootstrap guide. You need approved repository access, the Node version declared in .nvmrc, npm, and authorized local Supabase tooling. Never copy a production secret into a local file, shell history, screenshot, or docs page.
Setup procedure
Section titled “Setup procedure”- Start from the intended Git ref and inspect
git status; preserve unrelated work. - Read
.nvmrc, use that Node version, and install dependencies through the lockfile workflow declared bypackage.json. - Inspect available scripts with
npm run; run the documented typecheck/test/build before claiming a code path is ready. - For schema work, inspect
supabase/config.toml, migrations, and local history before rebuilding/testing an approved local environment. - For this handbook, use
npm run docs:dev,npm run docs:build, andnpm run docs:checkfrom repository scripts.
Expected result and recovery
Section titled “Expected result and recovery”A reproducible local check is not proof of deployment, provider delivery, or production schema state. If a VPS-first guard denies a command, report its prescribed command and stop; do not bypass it. Treat migration mismatch with a linked environment as a release investigation, never a reason for a broad production push.