Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 21e5968e2f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| datasource: { | ||
| url: process.env.DATABASE_URL, | ||
| url: process.env.DIRECT_URL, |
There was a problem hiding this comment.
Fall back when DIRECT_URL is unset
If DIRECT_URL is not defined (common in dev/CI that only sets DATABASE_URL), this Prisma config now passes undefined as the datasource URL, which causes Prisma CLI commands (e.g., migrate) to error out with “datasource url is required.” The previous version worked with only DATABASE_URL. Consider falling back to DATABASE_URL (e.g., process.env.DIRECT_URL ?? process.env.DATABASE_URL) to avoid breaking environments that don’t provide a direct URL.
Useful? React with 👍 / 👎.
No description provided.