Skip to content

🔨 fix: fixed prisma 7 adapter connection#25

Merged
Jophkins merged 1 commit intomainfrom
dev
Feb 3, 2026
Merged

🔨 fix: fixed prisma 7 adapter connection#25
Jophkins merged 1 commit intomainfrom
dev

Conversation

@Jophkins
Copy link
Owner

@Jophkins Jophkins commented Feb 3, 2026

No description provided.

@vercel
Copy link

vercel bot commented Feb 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
beetforge Error Error Feb 3, 2026 0:11am

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines 11 to +12
datasource: {
url: process.env.DATABASE_URL,
url: process.env.DIRECT_URL,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

@Jophkins Jophkins merged commit a00739d into main Feb 3, 2026
2 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant