Skip to content

FIX: Upgrate Next to prevent vulnerabilities from react#27

Merged
HpatricioH merged 19 commits into
mainfrom
develop
Dec 16, 2025
Merged

FIX: Upgrate Next to prevent vulnerabilities from react#27
HpatricioH merged 19 commits into
mainfrom
develop

Conversation

@HpatricioH

@HpatricioH HpatricioH commented Dec 12, 2025

Copy link
Copy Markdown
Owner

Fixes Issue

Changes Proposed

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

@vercel

vercel Bot commented Dec 12, 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 6:10am

@HpatricioH HpatricioH self-assigned this Dec 12, 2025

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR claims to upgrade Next.js to prevent React vulnerabilities, but the actual changes involve significant modifications to the Prisma database configuration, schema generator settings, and database adapter. The PR title contains a typo ("Upgrate" instead of "Upgrade") and doesn't accurately reflect the changes made.

Key Changes:

  • Switched database adapter from PrismaLibSQL to PrismaBetterSqlite3 (with incompatible client configuration)
  • Changed Prisma client import to use a custom generated path instead of standard @prisma/client
  • Modified Prisma schema generator from "prisma-client-js" to "prisma-client"
  • Added LOCAL_DATABASE_URL environment variable
  • Minor UI styling adjustment (added py-2 to header)

Reviewed changes

Copilot reviewed 20 out of 21 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
src/server/db.ts Changed Prisma import path and database adapter, but adapter and client are incompatible
src/env.js Added LOCAL_DATABASE_URL environment variable that isn't used in runtime code
src/app/_components/Header/Header.tsx Added vertical padding to header component
prisma/schema.prisma Changed generator provider to non-standard value and removed datasource URL
prisma/prisma/* Generated Prisma client files (autogenerated, should not be committed)
prisma.config.ts New Prisma configuration file using LOCAL_DATABASE_URL

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread prisma/schema.prisma
Comment thread src/server/db.ts
Comment thread src/server/db.ts
Comment thread src/server/db.ts
Comment thread src/env.js
Comment thread prisma/prisma/client.ts
Comment thread prisma/prisma/client.ts
Comment thread prisma/prisma/commonInputTypes.ts

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 20 out of 21 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/server/db.ts
Comment thread prisma/schema.prisma
Comment thread prisma/schema.prisma
Comment thread src/app/_components/Header/Header.tsx

Copilot AI commented Dec 16, 2025

Copy link
Copy Markdown
Contributor

@HpatricioH I've opened a new pull request, #28, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI commented Dec 16, 2025

Copy link
Copy Markdown
Contributor

@HpatricioH I've opened a new pull request, #29, to work on those changes. Once the pull request is ready, I'll request review from you.

HpatricioH and others added 3 commits December 16, 2025 00:57
Acknowledge PR title feedback - no changes needed
Confirm Prisma 7.x datasource configuration is valid without url field

Copilot AI commented Dec 16, 2025

Copy link
Copy Markdown
Contributor

@HpatricioH I've opened a new pull request, #30, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI commented Dec 16, 2025

Copy link
Copy Markdown
Contributor

@HpatricioH I've opened a new pull request, #31, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI commented Dec 16, 2025

Copy link
Copy Markdown
Contributor

@HpatricioH I've opened a new pull request, #32, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI commented Dec 16, 2025

Copy link
Copy Markdown
Contributor

@HpatricioH I've opened a new pull request, #33, to work on those changes. Once the pull request is ready, I'll request review from you.

No changes needed - keep custom Prisma import path
Address review feedback on Next upgrade PR
Address feedback on Next upgrade PR - no changes needed
Address feedback on unused import in generated Prisma types
@HpatricioH HpatricioH merged commit ef27c85 into main Dec 16, 2025
2 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.

3 participants