Setup Troubleshooting
Wrangler is not authenticated
Section titled “Wrangler is not authenticated”wrangler loginwrangler whoamipnpm run setupA database, bucket or Worker name already exists
Section titled “A database, bucket or Worker name already exists”Setup asks for a different name. It never overwrites another deployment’s resources in your account. Accept the suggested name or type your own.
Database configuration is missing
Section titled “Database configuration is missing”Check the D1 binding in the root wrangler.toml. For an existing deployment it must contain the real database_id. Do not replace it with the repository’s placeholder. If a merge overwrote it, recover the value from history:
git log -p -- wrangler.tomlDo not re-run setup to recover it: that provisions new resources instead.
The API returns errors on every request
Section titled “The API returns errors on every request”If wrangler tail shows an error about the auth secret, BETTER_AUTH_SECRET is missing. Set it:
wrangler secret put BETTER_AUTH_SECRET