Skip to content

Confirm Prisma 7.x datasource configuration is valid without url field#28

Merged
HpatricioH merged 1 commit into
developfrom
copilot/sub-pr-27
Dec 16, 2025
Merged

Confirm Prisma 7.x datasource configuration is valid without url field#28
HpatricioH merged 1 commit into
developfrom
copilot/sub-pr-27

Conversation

Copilot AI commented Dec 16, 2025

Copy link
Copy Markdown
Contributor

Fixes Issue

Changes Proposed

No code changes required. The bot's suggestion to add url = env("DATABASE_URL") to the schema.prisma datasource block was based on pre-7.x Prisma documentation.

With Prisma 7.x, the url field in schema.prisma is optional when using prisma.config.ts:

// prisma.config.ts
export default defineConfig({
  schema: 'prisma/schema.prisma',
  datasource: {
    url: env('LOCAL_DATABASE_URL'),  // URL configured here
  },
})
// prisma/schema.prisma
datasource db {
  provider = "sqlite"
  // url field is optional with prisma.config.ts
}

The current configuration follows the new pattern and is valid as-is.

Checklist (Check all the applicable boxes)

  • My code follows the code style of this project.
  • My change requires changes to the documentation.
  • I have updated the documentation accordingly.
  • The title of my pull request is a short description of the requested changes.

Screenshots


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@vercel

vercel Bot commented Dec 16, 2025

Copy link
Copy Markdown

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

Project Deployment Review Updated (UTC)
slug-link Ready Ready Preview, Comment Dec 16, 2025 5:55am

Copilot AI changed the title [WIP] Address feedback on upgrading Next to prevent vulnerabilities Confirm Prisma 7.x datasource configuration is valid without url field Dec 16, 2025
Copilot AI requested a review from HpatricioH December 16, 2025 05:55
@HpatricioH HpatricioH marked this pull request as ready for review December 16, 2025 05:58
@HpatricioH HpatricioH merged commit 5679deb into develop Dec 16, 2025
3 checks passed
@HpatricioH HpatricioH deleted the copilot/sub-pr-27 branch May 16, 2026 01:23
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.

2 participants