prisma:generate needs DATABASE_URL to resolve the schema but doesn't connect to the DB. After generate, unset the placeholder so that pnpm build and pnpm db:migrate pick up the real DATABASE_URL from the live .env (symlinked into the stage directory).