Action: set the Worker placement for your database
Run pnpm run setup --placement aws:sa-east-1 (or your database's <provider>:<region>, or smart) once per project. The template still ships aws:us-east-2, the region of its own database. See Worker placement.
- A production guide. /docs/production covers Neon in São Paulo (
aws-sa-east-1, fixed when the project is created), Launch versus Scale, why the one-minute cron keeps the compute awake, Worker placement, a monthly cost table with every price's source and reading date, running on a Node server or Google Cloud instead, backups, and monitoring a VPS. Deployment and rollback links to it. Commit pnpm setup --placement. Setup writesplacementintoapps/web/wrangler.jsonc, keeps it for reruns, takes the region from a Neon--hyperdrive-db-url, and asks for it in the interactive wizard. It never reads the localDATABASE_URL. Commitpnpm jobs:run --once --productionruns the job tick on a Node server from a system timer. It reads only its own environment, neverapps/web/.env, logs the samejobs.tickline as the Worker and exits 1 when the tick fails. See scheduled jobs on Node. Commitnode scripts/restore-drill.mjs <dump>restores a dump into a throwaway local PostgreSQL started byscripts/test-local-postgres.mjs. It runsdb:verify-rls, counts the rows of every table, prints timings and the age of the newest row, and ends with onerestore_drillJSON line for the alert channel. See restore drill. Commit