Skip to content

Conversation

@AmanVarshney01
Copy link
Contributor

@AmanVarshney01 AmanVarshney01 commented Oct 31, 2025

Summary by CodeRabbit

  • Chores

    • Updated Next.js to v16.0.1 and React to v19.2.0
    • Upgraded Prisma to v6.18.0 and related packages
    • Switched lint script to use ESLint and added an ESLint config module
    • Updated TypeScript settings and Prisma engine/configuration
  • Documentation

    • Simplified READMEs and environment setup to use a single DATABASE_URL
  • Style

    • Updated app metadata titles and descriptions (branding copy)

@coderabbitai
Copy link

coderabbitai bot commented Oct 31, 2025

Warning

Rate limit exceeded

@AmanVarshney01 has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 0 minutes and 1 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 149ed83 and c7ae669.

📒 Files selected for processing (31)
  • generator-prisma-client/nextjs-starter-turbopack/README.md (3 hunks)
  • generator-prisma-client/nextjs-starter-turbopack/app/layout.tsx (1 hunks)
  • generator-prisma-client/nextjs-starter-turbopack/prisma.config.ts (1 hunks)
  • generator-prisma-client/nextjs-starter-webpack-monorepo/README.md (3 hunks)
  • generator-prisma-client/nextjs-starter-webpack-monorepo/packages/next-app/app/layout.tsx (1 hunks)
  • generator-prisma-client/nextjs-starter-webpack-monorepo/packages/next-app/lib/db.ts (1 hunks)
  • generator-prisma-client/nextjs-starter-webpack-monorepo/packages/next-app/lib/env/server.ts (1 hunks)
  • generator-prisma-client/nextjs-starter-webpack-monorepo/packages/prisma/prisma.config.ts (1 hunks)
  • generator-prisma-client/nextjs-starter-webpack-monorepo/packages/prisma/prisma/schema.prisma (2 hunks)
  • generator-prisma-client/nextjs-starter-webpack-monorepo/packages/prisma/src/seed.ts (1 hunks)
  • generator-prisma-client/nextjs-starter-webpack-turborepo/README.md (4 hunks)
  • generator-prisma-client/nextjs-starter-webpack-turborepo/apps/web/app/layout.tsx (1 hunks)
  • generator-prisma-client/nextjs-starter-webpack-turborepo/apps/web/lib/db.ts (1 hunks)
  • generator-prisma-client/nextjs-starter-webpack-turborepo/apps/web/lib/env/server.ts (1 hunks)
  • generator-prisma-client/nextjs-starter-webpack-turborepo/packages/database/prisma.config.ts (1 hunks)
  • generator-prisma-client/nextjs-starter-webpack-turborepo/packages/database/prisma/schema.prisma (2 hunks)
  • generator-prisma-client/nextjs-starter-webpack-turborepo/packages/database/src/seed.ts (1 hunks)
  • generator-prisma-client/nextjs-starter-webpack-turborepo/turbo.json (1 hunks)
  • generator-prisma-client/nextjs-starter-webpack-with-middleware/README.md (3 hunks)
  • generator-prisma-client/nextjs-starter-webpack-with-middleware/app/layout.tsx (1 hunks)
  • generator-prisma-client/nextjs-starter-webpack-with-middleware/lib/db-edge.ts (1 hunks)
  • generator-prisma-client/nextjs-starter-webpack-with-middleware/lib/db.ts (1 hunks)
  • generator-prisma-client/nextjs-starter-webpack-with-middleware/lib/env/server.ts (1 hunks)
  • generator-prisma-client/nextjs-starter-webpack-with-middleware/prisma.config.ts (1 hunks)
  • generator-prisma-client/nextjs-starter-webpack-with-middleware/prisma/schema.prisma (2 hunks)
  • generator-prisma-client/nextjs-starter-webpack/README.md (3 hunks)
  • generator-prisma-client/nextjs-starter-webpack/app/layout.tsx (1 hunks)
  • generator-prisma-client/nextjs-starter-webpack/lib/db.ts (1 hunks)
  • generator-prisma-client/nextjs-starter-webpack/lib/env/server.ts (1 hunks)
  • generator-prisma-client/nextjs-starter-webpack/prisma.config.ts (1 hunks)
  • generator-prisma-client/nextjs-starter-webpack/prisma/schema.prisma (2 hunks)

Walkthrough

The PR updates multiple Prisma starter templates to upgrade dependencies (Prisma 6.18.0, Next.js 16.0.1, React 19.2.0), adds engineType = "client" to Prisma generator configurations across all templates, replaces the DIRECT_URL environment variable with DATABASE_URL in the turbopack template, and introduces ESLint configuration.

Changes

Cohort / File(s) Summary
New ESLint and TypeScript configurations
generator-prisma-client/nextjs-starter-turbopack/eslint.config.mjs, generator-prisma-client/nextjs-starter-turbopack/tsconfig.json
Added new ESLint configuration module extending next/core-web-vitals rules. Updated tsconfig.json JSX runtime from "preserve" to "react-jsx", expanded include paths to add Next.js dev types, and reformatted array entries for readability.
Database connection environment variable migration
generator-prisma-client/nextjs-starter-turbopack/lib/db.ts, generator-prisma-client/nextjs-starter-turbopack/lib/env/server.ts
Changed database connection string reference from DIRECT_URL to DATABASE_URL in both db initialization and server environment validation. Updated URL validation prefix from postgres:// to postgresql://.
Turbopack starter dependencies and Prisma schema
generator-prisma-client/nextjs-starter-turbopack/package.json, generator-prisma-client/nextjs-starter-turbopack/prisma/schema.prisma
Bumped Prisma (6.14.0 → 6.18.0), Next.js (15.3.5 → 16.0.1), React (19.1.0 → 19.2.0), ESLint (8.57.1 → ^9), and type packages. Added pnpm overrides for React types. Updated Prisma schema: added engineType = "client" to generator and removed directUrl from datasource. Changed lint script from "next lint" to "eslint .".
Webpack monorepo Prisma package
generator-prisma-client/nextjs-starter-webpack-monorepo/packages/prisma/package.json, generator-prisma-client/nextjs-starter-webpack-monorepo/packages/prisma/prisma/schema.prisma
Bumped Prisma versions (6.14.0 → 6.18.0) and downgraded @types/pg (8.15.6 → 8.15.5). Added engineType = "client" to Prisma generator configuration.
Webpack turborepo database package
generator-prisma-client/nextjs-starter-webpack-turborepo/packages/database/package.json, generator-prisma-client/nextjs-starter-webpack-turborepo/packages/database/prisma/schema.prisma
Bumped @prisma/adapter-pg, @prisma/client, and prisma from 6.14.0 to 6.18.0. Added engineType = "client" to generator block in Prisma schema.
Webpack with-middleware starter
generator-prisma-client/nextjs-starter-webpack-with-middleware/package.json, generator-prisma-client/nextjs-starter-webpack-with-middleware/prisma/schema.prisma
Upgraded Prisma packages from 6.14.0 to 6.18.0. Added engineType = "client" and reformatted generator block alignment in Prisma schema.
Webpack starter
generator-prisma-client/nextjs-starter-webpack/package.json, generator-prisma-client/nextjs-starter-webpack/prisma/schema.prisma
Bumped Prisma versions to 6.18.0. Updated Prisma generator: removed previewFeatures = ["driverAdapters", "queryCompiler"] and added engineType = "client".

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

  • Areas requiring extra attention:
    • Verify that the DATABASE_URLDIRECT_URL migration in the turbopack template is complete and all references have been updated correctly
    • Confirm that ESLint configuration in eslint.config.mjs is properly structured and compatible with ESLint ^9
    • Ensure Prisma version bump (6.14.0 → 6.18.0) across all templates does not introduce breaking changes
    • Validate that engineType = "client" addition is the correct Prisma configuration for all affected templates
    • Check consistency of pnpm overrides and dependency resolution across monorepo and turborepo setups

Possibly related PRs

Pre-merge checks

❌ Failed checks (1 warning, 1 inconclusive)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
Title Check ❓ Inconclusive The PR title "update all nextjs examples in generator-prisma-client/" is partially related to the changeset, as it correctly identifies that updates are being made across multiple NextJS example projects in the specified directory. However, the title is overly vague and generic—it uses broad language like "update all" without conveying what the substantive changes are. The changeset includes significant updates such as Prisma version bumps (6.14.0 to 6.18.0), ESLint configuration additions, environment variable renaming (DIRECT_URL to DATABASE_URL), schema generator changes, and dependency upgrades, none of which are reflected in the title. Consider revising the title to be more specific about the key changes, such as "Update Prisma to 6.18.0 and modernize NextJS examples configuration" or "Upgrade NextJS examples with Prisma 6.18.0 and ESLint updates". This would help reviewers and future maintainers quickly understand the scope and nature of the updates when scanning the commit history.
✅ Passed checks (1 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
generator-prisma-client/nextjs-starter-webpack-with-middleware/prisma/schema.prisma (1)

11-15: Add engineType = "client" to the edge generator block.

The edge generator uses runtime = "vercel" for Vercel Edge deployment but lacks engineType = "client", which is required for JS-only client deployments on edge platforms. The engineType = "client" produces a JS-only client without Rust binaries and requires a driver adapter for edge-compatible databases. This should be added for consistency with the main client generator and to ensure proper edge deployment configuration.

 generator edge {
   provider = "prisma-client"
+  engineType = "client"
   output   = "../lib/generated/prisma-edge"
   runtime  = "vercel"
 }
🧹 Nitpick comments (1)
generator-prisma-client/nextjs-starter-turbopack/eslint.config.mjs (1)

6-7: Remove unused variables.

The __filename and __dirname variables are computed but never used in the configuration. Consider removing them unless they're needed for future additions.

-const __filename = fileURLToPath(import.meta.url);
-const __dirname = path.dirname(__filename);
-
 export default defineConfig([{
📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 37abebc and 149ed83.

⛔ Files ignored due to path filters (5)
  • generator-prisma-client/nextjs-starter-turbopack/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
  • generator-prisma-client/nextjs-starter-webpack-monorepo/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
  • generator-prisma-client/nextjs-starter-webpack-turborepo/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
  • generator-prisma-client/nextjs-starter-webpack-with-middleware/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
  • generator-prisma-client/nextjs-starter-webpack/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (14)
  • generator-prisma-client/nextjs-starter-turbopack/eslint.config.mjs (1 hunks)
  • generator-prisma-client/nextjs-starter-turbopack/lib/db.ts (1 hunks)
  • generator-prisma-client/nextjs-starter-turbopack/lib/env/server.ts (1 hunks)
  • generator-prisma-client/nextjs-starter-turbopack/package.json (1 hunks)
  • generator-prisma-client/nextjs-starter-turbopack/prisma/schema.prisma (2 hunks)
  • generator-prisma-client/nextjs-starter-turbopack/tsconfig.json (2 hunks)
  • generator-prisma-client/nextjs-starter-webpack-monorepo/packages/prisma/package.json (1 hunks)
  • generator-prisma-client/nextjs-starter-webpack-monorepo/packages/prisma/prisma/schema.prisma (2 hunks)
  • generator-prisma-client/nextjs-starter-webpack-turborepo/packages/database/package.json (1 hunks)
  • generator-prisma-client/nextjs-starter-webpack-turborepo/packages/database/prisma/schema.prisma (2 hunks)
  • generator-prisma-client/nextjs-starter-webpack-with-middleware/package.json (2 hunks)
  • generator-prisma-client/nextjs-starter-webpack-with-middleware/prisma/schema.prisma (1 hunks)
  • generator-prisma-client/nextjs-starter-webpack/package.json (2 hunks)
  • generator-prisma-client/nextjs-starter-webpack/prisma/schema.prisma (1 hunks)
🧰 Additional context used
🧠 Learnings (7)
📓 Common learnings
Learnt from: aidankmcalister
Repo: prisma/prisma-examples PR: 8334
File: orm/fastify-graphql-sdl-first/src/context.ts:1-1
Timestamp: 2025-10-27T13:18:46.546Z
Learning: The prisma/prisma-examples repository is a monorepo containing many independent example projects. When reviewing PRs in this repository, focus only on the files actually changed by the author in that specific PR, not on other example projects or infrastructure that wasn't modified.
Learnt from: aidankmcalister
Repo: prisma/prisma-examples PR: 8334
File: orm/betterauth-astro/src/pages/sign-up/index.astro:20-36
Timestamp: 2025-10-24T17:50:48.569Z
Learning: Do not suggest code changes or improvements to code in Prisma example repositories (prisma/prisma-examples). These examples are carefully set up and intentionally aligned with external documentation and information.
Learnt from: AmanVarshney01
Repo: prisma/prisma-examples PR: 8327
File: orm/graphql-auth/prisma/schema.prisma:2-4
Timestamp: 2025-10-15T13:58:59.096Z
Learning: The "prisma-client" generator provider (introduced in Prisma v6) is the newer, ESM-ready alternative to "prisma-client-js". It requires an explicit output path and is better suited for modern runtimes, edge deployments, and will become the default in Prisma v7. Use "prisma-client" for new projects or when modernizing existing projects.
Learnt from: AmanVarshney01
Repo: prisma/prisma-examples PR: 8327
File: orm/graphql-subscriptions/prisma/schema.prisma:1-5
Timestamp: 2025-10-15T13:56:01.807Z
Learning: In Prisma v6.15 and later, `engineType = "client"` is a valid generator configuration value that generates a Prisma client without Rust engine binaries, relying on JavaScript driver adapters instead (e.g., prisma/adapter-pg). This is useful for edge and serverless deployments.
Learnt from: AmanVarshney01
Repo: prisma/prisma-examples PR: 8327
File: orm/fastify-graphql/prisma/schema.prisma:2-4
Timestamp: 2025-10-15T13:58:29.130Z
Learning: In Prisma v6.15 and later, `provider = "prisma-client"` is a valid generator configuration value when combined with `engineType = "client"`. This configuration generates a Prisma client without Rust engine binaries, relying on JavaScript driver adapters instead, and is different from the traditional `provider = "prisma-client-js"` configuration.
Learnt from: FGoessler
Repo: prisma/prisma-examples PR: 8260
File: generator-prisma-client/nextjs-starter-webpack-turborepo/packages/database/package.json:13-13
Timestamp: 2025-08-22T12:12:24.602Z
Learning: When analyzing changes from package.json seed scripts to "prisma db seed", always verify the actual content of prisma.config.ts rather than relying solely on regex patterns, as the configuration may be properly defined but in a format that doesn't match overly restrictive search patterns.
📚 Learning: 2025-08-22T12:12:24.602Z
Learnt from: FGoessler
Repo: prisma/prisma-examples PR: 8260
File: generator-prisma-client/nextjs-starter-webpack-turborepo/packages/database/package.json:13-13
Timestamp: 2025-08-22T12:12:24.602Z
Learning: When analyzing changes from package.json seed scripts to "prisma db seed", always verify the actual content of prisma.config.ts rather than relying solely on regex patterns, as the configuration may be properly defined but in a format that doesn't match overly restrictive search patterns.

Applied to files:

  • generator-prisma-client/nextjs-starter-turbopack/tsconfig.json
  • generator-prisma-client/nextjs-starter-webpack-turborepo/packages/database/package.json
  • generator-prisma-client/nextjs-starter-webpack-with-middleware/package.json
  • generator-prisma-client/nextjs-starter-webpack-monorepo/packages/prisma/package.json
  • generator-prisma-client/nextjs-starter-webpack-with-middleware/prisma/schema.prisma
  • generator-prisma-client/nextjs-starter-webpack-turborepo/packages/database/prisma/schema.prisma
  • generator-prisma-client/nextjs-starter-webpack-monorepo/packages/prisma/prisma/schema.prisma
  • generator-prisma-client/nextjs-starter-webpack/package.json
  • generator-prisma-client/nextjs-starter-turbopack/lib/db.ts
  • generator-prisma-client/nextjs-starter-webpack/prisma/schema.prisma
  • generator-prisma-client/nextjs-starter-turbopack/prisma/schema.prisma
  • generator-prisma-client/nextjs-starter-turbopack/lib/env/server.ts
  • generator-prisma-client/nextjs-starter-turbopack/package.json
📚 Learning: 2025-10-15T13:58:59.096Z
Learnt from: AmanVarshney01
Repo: prisma/prisma-examples PR: 8327
File: orm/graphql-auth/prisma/schema.prisma:2-4
Timestamp: 2025-10-15T13:58:59.096Z
Learning: The "prisma-client" generator provider (introduced in Prisma v6) is the newer, ESM-ready alternative to "prisma-client-js". It requires an explicit output path and is better suited for modern runtimes, edge deployments, and will become the default in Prisma v7. Use "prisma-client" for new projects or when modernizing existing projects.

Applied to files:

  • generator-prisma-client/nextjs-starter-turbopack/tsconfig.json
  • generator-prisma-client/nextjs-starter-webpack-turborepo/packages/database/package.json
  • generator-prisma-client/nextjs-starter-webpack-with-middleware/package.json
  • generator-prisma-client/nextjs-starter-webpack-monorepo/packages/prisma/package.json
  • generator-prisma-client/nextjs-starter-webpack-with-middleware/prisma/schema.prisma
  • generator-prisma-client/nextjs-starter-webpack-turborepo/packages/database/prisma/schema.prisma
  • generator-prisma-client/nextjs-starter-webpack-monorepo/packages/prisma/prisma/schema.prisma
  • generator-prisma-client/nextjs-starter-webpack/package.json
  • generator-prisma-client/nextjs-starter-turbopack/lib/db.ts
  • generator-prisma-client/nextjs-starter-turbopack/eslint.config.mjs
  • generator-prisma-client/nextjs-starter-webpack/prisma/schema.prisma
  • generator-prisma-client/nextjs-starter-turbopack/prisma/schema.prisma
  • generator-prisma-client/nextjs-starter-turbopack/package.json
📚 Learning: 2025-10-15T13:56:01.807Z
Learnt from: AmanVarshney01
Repo: prisma/prisma-examples PR: 8327
File: orm/graphql-subscriptions/prisma/schema.prisma:1-5
Timestamp: 2025-10-15T13:56:01.807Z
Learning: In Prisma v6.15 and later, `engineType = "client"` is a valid generator configuration value that generates a Prisma client without Rust engine binaries, relying on JavaScript driver adapters instead (e.g., prisma/adapter-pg). This is useful for edge and serverless deployments.

Applied to files:

  • generator-prisma-client/nextjs-starter-webpack-turborepo/packages/database/package.json
  • generator-prisma-client/nextjs-starter-webpack-with-middleware/package.json
  • generator-prisma-client/nextjs-starter-webpack-monorepo/packages/prisma/package.json
  • generator-prisma-client/nextjs-starter-webpack-with-middleware/prisma/schema.prisma
  • generator-prisma-client/nextjs-starter-webpack-turborepo/packages/database/prisma/schema.prisma
  • generator-prisma-client/nextjs-starter-webpack-monorepo/packages/prisma/prisma/schema.prisma
  • generator-prisma-client/nextjs-starter-webpack/package.json
  • generator-prisma-client/nextjs-starter-turbopack/lib/db.ts
  • generator-prisma-client/nextjs-starter-webpack/prisma/schema.prisma
  • generator-prisma-client/nextjs-starter-turbopack/prisma/schema.prisma
  • generator-prisma-client/nextjs-starter-turbopack/package.json
📚 Learning: 2025-10-15T13:58:29.130Z
Learnt from: AmanVarshney01
Repo: prisma/prisma-examples PR: 8327
File: orm/fastify-graphql/prisma/schema.prisma:2-4
Timestamp: 2025-10-15T13:58:29.130Z
Learning: In Prisma v6.15 and later, `provider = "prisma-client"` is a valid generator configuration value when combined with `engineType = "client"`. This configuration generates a Prisma client without Rust engine binaries, relying on JavaScript driver adapters instead, and is different from the traditional `provider = "prisma-client-js"` configuration.

Applied to files:

  • generator-prisma-client/nextjs-starter-webpack-turborepo/packages/database/package.json
  • generator-prisma-client/nextjs-starter-webpack-with-middleware/package.json
  • generator-prisma-client/nextjs-starter-webpack-monorepo/packages/prisma/package.json
  • generator-prisma-client/nextjs-starter-webpack-with-middleware/prisma/schema.prisma
  • generator-prisma-client/nextjs-starter-webpack-turborepo/packages/database/prisma/schema.prisma
  • generator-prisma-client/nextjs-starter-webpack-monorepo/packages/prisma/prisma/schema.prisma
  • generator-prisma-client/nextjs-starter-webpack/package.json
  • generator-prisma-client/nextjs-starter-turbopack/lib/db.ts
  • generator-prisma-client/nextjs-starter-webpack/prisma/schema.prisma
  • generator-prisma-client/nextjs-starter-turbopack/prisma/schema.prisma
  • generator-prisma-client/nextjs-starter-turbopack/package.json
📚 Learning: 2025-10-27T13:18:46.546Z
Learnt from: aidankmcalister
Repo: prisma/prisma-examples PR: 8334
File: orm/fastify-graphql-sdl-first/src/context.ts:1-1
Timestamp: 2025-10-27T13:18:46.546Z
Learning: In the prisma/prisma-examples repository, generated Prisma client files (typically at paths like `prisma/generated/client`) are intentionally not committed to the repository. These files are generated at build/test time. Do not flag missing generated client artifacts as issues in reviews.

Applied to files:

  • generator-prisma-client/nextjs-starter-webpack-with-middleware/package.json
  • generator-prisma-client/nextjs-starter-webpack-monorepo/packages/prisma/package.json
  • generator-prisma-client/nextjs-starter-webpack-with-middleware/prisma/schema.prisma
  • generator-prisma-client/nextjs-starter-webpack-turborepo/packages/database/prisma/schema.prisma
  • generator-prisma-client/nextjs-starter-webpack-monorepo/packages/prisma/prisma/schema.prisma
  • generator-prisma-client/nextjs-starter-turbopack/lib/db.ts
  • generator-prisma-client/nextjs-starter-webpack/prisma/schema.prisma
  • generator-prisma-client/nextjs-starter-turbopack/prisma/schema.prisma
📚 Learning: 2025-08-22T12:12:43.161Z
Learnt from: FGoessler
Repo: prisma/prisma-examples PR: 8260
File: generator-prisma-client/nextjs-starter-turbopack/components/quotes.tsx:1-1
Timestamp: 2025-08-22T12:12:43.161Z
Learning: In Next.js applications using Prisma, the connection() function from 'next/server' serves a different purpose than 'export const dynamic = force-dynamic'. The connection() function ensures proper database connection context and request isolation, while dynamic = 'force-dynamic' only controls rendering strategy. Both should be used together and are not redundant.

Applied to files:

  • generator-prisma-client/nextjs-starter-turbopack/lib/db.ts
  • generator-prisma-client/nextjs-starter-turbopack/lib/env/server.ts
🧬 Code graph analysis (1)
generator-prisma-client/nextjs-starter-turbopack/lib/db.ts (1)
generator-prisma-client/nextjs-starter-turbopack/lib/env/server.ts (1)
  • env (4-9)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: test (orm/nextjs-graphql)
  • GitHub Check: test (orm/nuxt)
  • GitHub Check: test (orm/grpc)
🔇 Additional comments (17)
generator-prisma-client/nextjs-starter-webpack-turborepo/packages/database/prisma/schema.prisma (1)

2-6: Modernize generator configuration to Prisma v6+ standards.

The updates to use provider = "prisma-client" with engineType = "client" and an explicit output path align with Prisma v6.15+ best practices for ESM-ready client generation suitable for Next.js and edge/serverless environments. Based on learnings, this configuration is valid and appropriate for modern deployments.

Please verify that:

  1. The Prisma version in the package.json dependencies is v6.15 or later to support engineType = "client".
  2. The output path ../src/generated/prisma is correctly resolved by the build system and aligns with how the generated Prisma client is imported elsewhere in the project.

You can confirm by checking the package.json for the Prisma version and searching for Prisma client imports in the codebase.

generator-prisma-client/nextjs-starter-webpack-with-middleware/package.json (1)

27-28: LGTM! Prisma dependencies updated to 6.18.0.

The dependency upgrades are straightforward and align with the PR objective to modernize the Next.js examples.

Also applies to: 47-47

generator-prisma-client/nextjs-starter-webpack-monorepo/packages/prisma/prisma/schema.prisma (1)

3-5: LGTM! Generator configuration updated with engineType.

The addition of engineType = "client" is appropriate for edge/serverless deployments, as it generates a Prisma client without Rust engine binaries. Based on learnings.

generator-prisma-client/nextjs-starter-webpack/prisma/schema.prisma (1)

6-8: LGTM! Generator configuration modernized.

The addition of engineType = "client" and removal of preview features aligns with Prisma v6 best practices for modern deployments. Based on learnings.

generator-prisma-client/nextjs-starter-webpack-with-middleware/prisma/schema.prisma (1)

6-8: LGTM! Generator client configuration updated.

The addition of engineType = "client" is appropriate for this generator. Based on learnings.

generator-prisma-client/nextjs-starter-turbopack/prisma/schema.prisma (2)

6-8: LGTM! Generator configuration modernized.

The addition of engineType = "client" is appropriate for edge/serverless deployments. Based on learnings.


12-13: LGTM! Datasource simplified to use single URL.

The removal of directUrl aligns with the environment variable changes in lib/env/server.ts and lib/db.ts, where DIRECT_URL was replaced with DATABASE_URL. This simplifies the configuration.

generator-prisma-client/nextjs-starter-turbopack/lib/db.ts (1)

16-16: LGTM! Environment variable updated to match configuration.

The change from env.DIRECT_URL to env.DATABASE_URL aligns with the removal of directUrl in the Prisma schema and the environment variable rename in lib/env/server.ts.

generator-prisma-client/nextjs-starter-webpack-monorepo/packages/prisma/package.json (2)

45-46: LGTM! Prisma dependencies updated consistently.

The Prisma-related dependencies are updated to version 6.18.0, which aligns with the PR objective of modernizing these examples.

Also applies to: 52-52


51-51: Confirm the intentional downgrade of @types/pg to 8.15.5.

The @types/pg package is currently pinned to 8.15.5, while 8.15.6 is available. Patch version downgrades can be intentional (e.g., to avoid a regression), but please confirm this was deliberate.

generator-prisma-client/nextjs-starter-webpack/package.json (1)

27-28: LGTM! Prisma dependencies updated consistently.

All Prisma-related packages are updated to version 6.18.0, maintaining consistency across the repository.

Also applies to: 46-46

generator-prisma-client/nextjs-starter-turbopack/tsconfig.json (2)

18-18: LGTM! JSX transform updated for React 19.

The jsx compiler option is correctly updated to "react-jsx", which is appropriate for React 19+ and provides better tree-shaking and performance.


36-42: LGTM! Include paths updated for Next.js 16.

Adding ".next/dev/types/**/*.ts" to the include array is correct for Next.js 16's improved type generation in development mode.

generator-prisma-client/nextjs-starter-webpack-turborepo/packages/database/package.json (1)

22-23: LGTM! Prisma dependencies updated consistently.

All Prisma packages are updated to version 6.18.0, maintaining version consistency across the turborepo workspace.

Also applies to: 30-30

generator-prisma-client/nextjs-starter-turbopack/package.json (3)

24-24: LGTM! Lint script updated for ESLint v9.

The lint script change from "next lint" to "eslint ." aligns with the new ESLint flat config (eslint.config.mjs) added in this PR. This is the correct approach for ESLint v9+.


27-28: LGTM! Major framework dependencies updated.

The coordinated updates look good:

  • Next.js 16.0.1 (major upgrade)
  • React 19.2.0 (latest stable)
  • ESLint ^9 (major upgrade with flat config support)
  • Prisma 6.18.0 (consistent across the PR)

Also applies to: 30-30, 32-33, 44-46


52-57: LGTM! pnpm overrides ensure type consistency.

The pnpm overrides for @types/react and @types/react-dom at version 19.2.2 ensure that all transitive dependencies use consistent React type definitions, preventing type conflicts.

Copy link
Contributor

@mhartington mhartington left a comment

Choose a reason for hiding this comment

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

One small question, but otherwise good

@AmanVarshney01 AmanVarshney01 changed the base branch from latest to prisma-7 November 7, 2025 11:41
@AmanVarshney01 AmanVarshney01 merged commit 94518fd into prisma-7 Nov 14, 2025
47 checks passed
@AmanVarshney01 AmanVarshney01 deleted the update-nextjs-examples branch November 14, 2025 04:49
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