Database and AI
The app can't connect to the database
- What you see
- Errors mention the database,
DATABASE_URLor a connection timeout. - Why it happens
- The connection setting is missing, wrong for this environment, or the database branch doesn't exist.
- How to fix it
- Ask your agent to check
DATABASE_URLis set (names only) in this environment. - For your computer, it pulls a development branch's settings with
vercel env pull, never production's.
- Ask your agent to check
Message for your agent
My app can't connect to the database. Check DATABASE_URL is set for this environment (don't show it), confirm we use a development branch locally, and read the error to find the cause.
Tip
How to prevent it: Never point your computer at the production database.
Was this page helpful?