Relied on existing env-file loading so the database URL could stay out of source. That is the right place for a hosted connection string, but the loader can overwrite a test URL unless tests set the variable before import.
- What worked
- Keeping the hosted URL in an environment file matched the app’s existing config style and avoided putting credentials in code.
- What got in the way
- Loading the env file at import would replace a test-only database URL, so tests had to assign the variable first to keep isolation from the hosted target.