-
Notifications
You must be signed in to change notification settings - Fork 870
(feat) Removes Accelerate specific instructions for Prisma Postgres #7268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(feat) Removes Accelerate specific instructions for Prisma Postgres #7268
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughThis PR replaces many Accelerate/withAccelerate-based Prisma examples with an adapter-based setup (PrismaPg/@prisma/adapter-*) across the guides, updates dependency/install commands to include adapter and pg packages, consolidates tabbed DB instructions into a single advisory, and adds a few adapter-driven code changes and a new saveChat utility. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20–30 minutes
Areas to review closely:
Possibly related PRs
Pre-merge checks✅ Passed checks (3 passed)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
Tip 📝 Customizable high-level summaries are now available in beta!You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.
Example instruction:
Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later. Comment |
|
Also adds instructions to install relevant dependencies required for Prisma 7. |
Dangerous URL checkNo absolute URLs to prisma.io/docs found. |
Redirect checkThis PR probably requires the following redirects to be added to static/_redirects:
|
🍈 Lychee Link Check Report
📊 Results Overview
Errors per inputErrors in 200-orm/800-more/600-help-and-troubleshooting/050-dataguide/02-introduction-to-data-types.mdx
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
content/800-guides/320-permit-io-access-control.mdx (1)
3-3: Minor: metaTitle contains likely typo.Line 3 has
metaTitle: 'How to use Prisma ORM and Prisma Postgres with CPermit.io'but should probably readPermit.ioinstead ofCPermit.io(note the extra "C").Consider removing the "C" prefix from "CPermit.io".
🧹 Nitpick comments (3)
content/800-guides/220-astro.mdx (1)
287-291: Consider updating the connection pooler recommendation for clarity.The warning still recommends Accelerate as the primary pooler example. Given that this guide is now focused on the driver adapter pattern (which works without Accelerate), it may be worth broadening the language or adding context that connection poolers like Accelerate are optional additions, not required for the adapter setup shown here. Alternatively, you could mention other pooling options (e.g., PgBouncer) to reflect that Accelerate isn't the only path.
The current advice is technically sound—connection pooling is recommended for production—but slightly misaligned with the PR goal of de-emphasizing Accelerate-specific approaches.
Suggested revision:
:::warning -We recommend using a connection pooler (like [Prisma Accelerate](https://www.prisma.io/accelerate)) to manage database connections efficiently. +For production environments, we recommend using a connection pooler (such as PgBouncer, [Prisma Accelerate](https://www.prisma.io/accelerate), or similar) to manage database connections efficiently. If you choose not to use one, **avoid** instantiating `PrismaClient` globally in long-lived environments. Instead, create and dispose of the client per request to prevent exhausting your database connections. :::Alternatively, if you prefer a more generic approach:
:::warning -We recommend using a connection pooler (like [Prisma Accelerate](https://www.prisma.io/accelerate)) to manage database connections efficiently. +For production environments, we recommend using a connection pooler to manage database connections efficiently. If you choose not to use one, **avoid** instantiating `PrismaClient` globally in long-lived environments. Instead, create and dispose of the client per request to prevent exhausting your database connections. :::content/800-guides/010-data-migration.mdx (1)
151-159: Informational note about dotenv is now somewhat redundant.Since line 89 already includes
dotenvin the installation command (npm install @prisma/client @prisma/adapter-pg pg dotenv), the note at lines 151-159 about needing to "install the dotenv package" is no longer necessary. Consider removing it to reduce duplication.content/800-guides/060-migrate-from-drizzle.mdx (1)
264-268: Minor wording refinement for conciseness.Line 264 uses "in order to have" which is grammatically correct but slightly verbose. Simplify to "so that" or restructure slightly for better flow. As per the learnings, this is a low-priority improvement.
Example:
- Current: "you need to run
generatein order to have your schema reflected in TypeScript types"- Suggested: "you need to run
generateso your schema is reflected in TypeScript types"
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (26)
content/800-guides/010-data-migration.mdx(1 hunks)content/800-guides/050-migrate-from-mongoose.mdx(1 hunks)content/800-guides/060-migrate-from-drizzle.mdx(2 hunks)content/800-guides/080-turborepo.mdx(1 hunks)content/800-guides/090-nextjs.mdx(2 hunks)content/800-guides/130-docker.mdx(1 hunks)content/800-guides/140-use-prisma-in-pnpm-workspaces.mdx(2 hunks)content/800-guides/150-multiple-databases.mdx(3 hunks)content/800-guides/160-tanstack-start.mdx(1 hunks)content/800-guides/170-react-router-7.mdx(1 hunks)content/800-guides/180-solid-start.mdx(1 hunks)content/800-guides/190-data-dog.mdx(3 hunks)content/800-guides/190-sveltekit.mdx(1 hunks)content/800-guides/200-clerk-nextjs.mdx(1 hunks)content/800-guides/220-astro.mdx(1 hunks)content/800-guides/230-betterauth-nextjs.mdx(1 hunks)content/800-guides/320-permit-io-access-control.mdx(1 hunks)content/800-guides/330-github-actions.mdx(2 hunks)content/800-guides/340-ai-sdk-nextjs.mdx(1 hunks)content/800-guides/350-authjs-nextjs.mdx(1 hunks)content/800-guides/360-embed-studio-nextjs.mdx(1 hunks)content/800-guides/370-bun.mdx(1 hunks)content/800-guides/390-hono.mdx(1 hunks)content/800-guides/400-betterauth-astro.mdx(2 hunks)content/800-guides/400-deno-integration.mdx(2 hunks)content/800-guides/999-making-guides.mdx(2 hunks)
🧰 Additional context used
🧠 Learnings (7)
📓 Common learnings
Learnt from: ankur-arch
Repo: prisma/docs PR: 7066
File: content/200-orm/200-prisma-client/700-debugging-and-troubleshooting/245-troubleshooting-binary-size-issues.mdx:8-22
Timestamp: 2025-08-11T09:40:55.237Z
Learning: When the queryCompiler preview feature is enabled in Prisma ORM (v6.7.0+), it does not require Rust engines for CLI tools like `prisma migrate` or `prisma db pull`. The previous understanding that CLI tools would still need Rust binaries even with queryCompiler enabled is incorrect.
📚 Learning: 2025-10-08T16:23:00.388Z
Learnt from: aidankmcalister
Repo: prisma/docs PR: 7165
File: content/800-guides/550-test-guide.mdx:85-90
Timestamp: 2025-10-08T16:23:00.388Z
Learning: For .mdx files in the prisma/docs repository: All headings and titles should use sentence case (e.g., "Getting started with Prisma ORM", "Best practices for authentication"), not title case. Exception: Always preserve exact casing for product names including "Prisma Postgres", "Prisma", "Prisma ORM", and "Prisma Data Platform".
Applied to files:
content/800-guides/060-migrate-from-drizzle.mdxcontent/800-guides/160-tanstack-start.mdxcontent/800-guides/130-docker.mdxcontent/800-guides/350-authjs-nextjs.mdxcontent/800-guides/150-multiple-databases.mdxcontent/800-guides/180-solid-start.mdxcontent/800-guides/390-hono.mdxcontent/800-guides/010-data-migration.mdxcontent/800-guides/230-betterauth-nextjs.mdxcontent/800-guides/090-nextjs.mdxcontent/800-guides/999-making-guides.mdxcontent/800-guides/220-astro.mdx
📚 Learning: 2025-08-11T09:40:55.237Z
Learnt from: ankur-arch
Repo: prisma/docs PR: 7066
File: content/200-orm/200-prisma-client/700-debugging-and-troubleshooting/245-troubleshooting-binary-size-issues.mdx:8-22
Timestamp: 2025-08-11T09:40:55.237Z
Learning: When the queryCompiler preview feature is enabled in Prisma ORM (v6.7.0+), it does not require Rust engines for CLI tools like `prisma migrate` or `prisma db pull`. The previous understanding that CLI tools would still need Rust binaries even with queryCompiler enabled is incorrect.
Applied to files:
content/800-guides/060-migrate-from-drizzle.mdxcontent/800-guides/160-tanstack-start.mdxcontent/800-guides/320-permit-io-access-control.mdxcontent/800-guides/390-hono.mdxcontent/800-guides/230-betterauth-nextjs.mdxcontent/800-guides/090-nextjs.mdxcontent/800-guides/170-react-router-7.mdx
📚 Learning: 2025-10-09T21:32:50.340Z
Learnt from: aidankmcalister
Repo: prisma/docs PR: 7167
File: content/900-ai/prompts/astro.mdx:84-84
Timestamp: 2025-10-09T21:32:50.340Z
Learning: The `npx prisma init` command supports the following flags: `--db` (shorthand for `--datasource-provider prisma+postgres`), `--output` (specifies output location for generated client), `--generator-provider` (defines the generator provider), `--datasource-provider`, `--url`, `--preview-feature`, and `--with-model`. These are documented valid CLI options for Prisma init command.
Applied to files:
content/800-guides/060-migrate-from-drizzle.mdxcontent/800-guides/160-tanstack-start.mdxcontent/800-guides/320-permit-io-access-control.mdxcontent/800-guides/130-docker.mdxcontent/800-guides/330-github-actions.mdxcontent/800-guides/340-ai-sdk-nextjs.mdxcontent/800-guides/350-authjs-nextjs.mdxcontent/800-guides/150-multiple-databases.mdxcontent/800-guides/180-solid-start.mdxcontent/800-guides/390-hono.mdxcontent/800-guides/370-bun.mdxcontent/800-guides/140-use-prisma-in-pnpm-workspaces.mdxcontent/800-guides/010-data-migration.mdxcontent/800-guides/360-embed-studio-nextjs.mdxcontent/800-guides/230-betterauth-nextjs.mdxcontent/800-guides/190-sveltekit.mdxcontent/800-guides/090-nextjs.mdxcontent/800-guides/170-react-router-7.mdxcontent/800-guides/080-turborepo.mdxcontent/800-guides/400-betterauth-astro.mdxcontent/800-guides/190-data-dog.mdxcontent/800-guides/999-making-guides.mdxcontent/800-guides/400-deno-integration.mdxcontent/800-guides/200-clerk-nextjs.mdxcontent/800-guides/220-astro.mdx
📚 Learning: 2025-10-08T16:23:00.388Z
Learnt from: aidankmcalister
Repo: prisma/docs PR: 7165
File: content/800-guides/550-test-guide.mdx:85-90
Timestamp: 2025-10-08T16:23:00.388Z
Learning: For .mdx files in the prisma/docs repository: Only flag code snippets for (1) exposed secrets with real-looking values that should be placeholders (e.g., API keys, database passwords, AWS credentials), or (2) blatant syntax errors like missing parentheses, brackets, braces, or mismatched delimiters. Do not flag code quality issues, anti-patterns, security vulnerabilities, missing error handling, unused variables, or any other bad practices, as documentation intentionally shows problematic code.
Applied to files:
content/800-guides/160-tanstack-start.mdxcontent/800-guides/130-docker.mdxcontent/800-guides/350-authjs-nextjs.mdxcontent/800-guides/150-multiple-databases.mdxcontent/800-guides/010-data-migration.mdxcontent/800-guides/230-betterauth-nextjs.mdxcontent/800-guides/090-nextjs.mdxcontent/800-guides/220-astro.mdx
📚 Learning: 2025-10-08T16:22:57.129Z
Learnt from: aidankmcalister
Repo: prisma/docs PR: 7165
File: content/800-guides/550-test-guide.mdx:50-66
Timestamp: 2025-10-08T16:22:57.129Z
Learning: In `.mdx` files, do NOT flag or suggest changes for the following code quality issues even if they represent poor practices: React anti-patterns (using var instead of useState, direct DOM manipulation), missing keys in .map() iterations, non-serializable props in getServerSideProps, unused variables, missing error handling, SQL injection vulnerabilities (unless actively showing how to fix them), insecure cookie settings, missing TypeScript types, PrismaClient instantiation patterns, or any other code quality, security, or performance issues. Documentation code snippets are copied from source code and often intentionally show "before" examples or common mistakes.
Applied to files:
content/800-guides/050-migrate-from-mongoose.mdxcontent/800-guides/350-authjs-nextjs.mdxcontent/800-guides/150-multiple-databases.mdxcontent/800-guides/360-embed-studio-nextjs.mdxcontent/800-guides/230-betterauth-nextjs.mdxcontent/800-guides/190-sveltekit.mdxcontent/800-guides/090-nextjs.mdxcontent/800-guides/170-react-router-7.mdxcontent/800-guides/400-betterauth-astro.mdxcontent/800-guides/220-astro.mdx
📚 Learning: 2025-10-14T11:41:08.844Z
Learnt from: carlagn
Repo: prisma/docs PR: 7183
File: content/200-orm/800-more/600-help-and-troubleshooting/050-dataguide/050-database-glossary.mdx:561-567
Timestamp: 2025-10-14T11:41:08.844Z
Learning: Ignore the file `content/200-orm/800-more/600-help-and-troubleshooting/050-dataguide/050-database-glossary.mdx` in future reviews as per user request. Issues in this file were addressed in PR #7185.
Applied to files:
content/800-guides/350-authjs-nextjs.mdx
🪛 LanguageTool
content/800-guides/060-migrate-from-drizzle.mdx
[style] ~264-~264: Consider a more concise word here.
Context: ...t in Step 1, you need to run generate in order to have your schema reflected in TypeScrip...
(IN_ORDER_TO_PREMIUM)
⏰ 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). (1)
- GitHub Check: Cloudflare Pages
🔇 Additional comments (44)
content/800-guides/220-astro.mdx (1)
53-61: Adapter pattern implementation is consistent and well-documented.The dependency updates correctly reflect the driver adapter approach, and the new info box (lines 57-61) clearly explains how to swap driver adapters for other databases. All code samples in this guide (seed.ts, prisma.ts) properly use the
PrismaPgadapter, maintaining coherence across the entire setup flow.content/800-guides/200-clerk-nextjs.mdx (3)
223-231: Driver adapter guidance is clearly communicated.The new info block appropriately advises developers to use corresponding driver adapters for non-PostgreSQL providers. This mirrors the pattern across other guides in the PR and provides helpful context.
329-348: PrismaClient initialization correctly uses the PrismaPg adapter.The adapter pattern is implemented properly with connection string configuration and global singleton management for non-production environments.
148-213: Navbar component addition improves the Clerk integration example.The new component demonstrates best practices for integrating Clerk's authentication UI components and is well-structured for the guide's educational purpose.
content/800-guides/320-permit-io-access-control.mdx (1)
50-58: Installation and driver adapter guidance is consistent with other guides.The changes properly replace the Accelerate-specific setup with driver adapter instructions and maintain alignment across the documentation suite.
content/800-guides/360-embed-studio-nextjs.mdx (1)
82-90: Dependency changes are correctly applied for Prisma Studio embedding.The replacement of Accelerate with the PrismaPg adapter and accompanying driver packages is consistent with the PR's migration pattern. The info admonition appropriately guides developers toward database-appropriate adapters.
content/800-guides/230-betterauth-nextjs.mdx (2)
61-69: Installation commands and driver adapter guidance align with the broader migration.The consolidation from multi-database tabs to a single adapter-based guidance path is a sensible simplification that maintains clarity while reducing redundancy.
135-155: PrismaClient initialization properly demonstrates the adapter pattern.The setup correctly instantiates PrismaPg with connection string and maintains a singleton pattern for development environments.
content/800-guides/170-react-router-7.mdx (1)
50-58: Dependency updates and adapter guidance are consistent and clear.The changes maintain uniformity with the broader guide updates while providing appropriate context for non-PostgreSQL database choices.
content/800-guides/010-data-migration.mdx (1)
85-96: Installation guidance is updated and driver adapter information is clearly provided.The changes remove ambiguity about dependency installation and align with the driver adapter approach.
content/800-guides/350-authjs-nextjs.mdx (2)
57-65: Installation and adapter guidance maintain consistency across guides.The updated dependencies and driver adapter information align with the PR's overall migration strategy and are clearly presented.
204-223: PrismaClient adapter initialization is correct and follows established patterns.The implementation properly uses the PrismaPg adapter with appropriate error handling and development-mode singleton management.
content/800-guides/130-docker.mdx (2)
81-89: Docker guide correctly implements adapter-based Prisma setup.The installation commands and driver adapter guidance are properly integrated into the Docker containerization examples, maintaining consistency with other updated guides.
172-203: Express.js server correctly initializes PrismaClient with the PrismaPg adapter.The implementation demonstrates proper adapter initialization and connection management within a containerized environment.
content/800-guides/060-migrate-from-drizzle.mdx (1)
53-61: Consistent driver adapter installation pattern.The installation structure aligns well with the PR's migration strategy:
@types/pgandprisma/tsxas dev dependencies, followed by@prisma/adapter-pg,pg, and@prisma/clientas runtime dependencies. The accompanying info block gracefully directs non-Postgres users to install the corresponding adapter, reducing the need for database-specific tabs.content/800-guides/190-sveltekit.mdx (1)
64-72: Installation and driver adapter guidance remains consistent.The dependency installation and informational note mirror the
migrate-from-drizzleguide, maintaining uniformity across documentation. The adapter-based approach is now the standard pattern throughout these guides.content/800-guides/180-solid-start.mdx (1)
70-78: Consistent adapter pattern established across guides.Installation and info block align with prior guides in this migration. No inconsistencies detected.
content/800-guides/390-hono.mdx (1)
42-50: Installation pattern consistent throughout this guide set.The adapter-based installation and driver guidance remain uniform with previous guides.
content/800-guides/400-deno-integration.mdx (1)
107-111: Correct Deno-specific adapter initialization.The
deno installcommand properly uses thenpm:prefix for npm packages, and the PrismaPg adapter is correctly initialized with the connection string. The adapter pattern adapts well to Deno's environment.Also applies to: 167-176
content/800-guides/160-tanstack-start.mdx (1)
310-318: Installation pattern consistent with established guide standard.Adapter installation and driver guidance remain aligned across this guide set.
content/800-guides/400-betterauth-astro.mdx (1)
54-62: Correct Astro-specific adapter initialization.Installation is consistent with other guides. The adapter initialization correctly uses
import.meta.env.DATABASE_URLrather thanprocess.env, which is the appropriate pattern for Astro's environment handling.Also applies to: 125-132
content/800-guides/340-ai-sdk-nextjs.mdx (2)
56-64: Consistent adapter pattern with proper Node.js singleton pattern.Installation aligns with other guides. The global Prisma instance using the NODE_ENV check is the appropriate pattern for Next.js long-lived environments. The route handler extension to support session ID and message persistence is well-structured.
Also applies to: 165-182, 257-282
297-359: Save chat implementation correctly handles session and message persistence.The
saveChatfunction properly upserts the session and stores the last two messages (avoiding duplicates). The role mapping to enum values and JSON stringification for flexible content storage are both sound approaches.content/800-guides/330-github-actions.mdx (2)
47-55: Consistent adapter-based setup with clear driver flexibility guidance.The dependency installation and info admonition about alternative database drivers are well-structured. Users can easily substitute
@prisma/adapter-pgfor other adapters based on their database choice.
142-153: Well-configured seed script using PrismaPg adapter.The seed script correctly initializes the PrismaPg adapter and passes it to PrismaClient. The pattern of extracting
connectionStringfrom environment variables is appropriate for GitHub Actions workflows.content/800-guides/150-multiple-databases.mdx (2)
64-72: Excellent multi-database setup with adapter flexibility.Dependencies and driver adapter guidance are consistent. The separation into user and post database clients demonstrates a scalable pattern for multiple database instances.
288-310: Properly isolated PrismaClient instances for separate databases.Each database client correctly initializes its own PrismaPg adapter with its respective connection string environment variable. The global memoization pattern prevents redundant client instantiation in development mode.
content/800-guides/080-turborepo.mdx (2)
96-125: Consistent multi-package-manager dependency installation.The tabbed installation instructions correctly show the same dependency set across npm, yarn, and pnpm. The info admonition about alternative database drivers is appropriately placed.
366-389: Well-structured Prisma package with proper public exports.The client initialization with PrismaPg adapter is correct, and the index.ts file properly re-exports both the prisma instance and generated types. The Just-in-Time packaging approach with the exports field is documented appropriately.
content/800-guides/190-data-dog.mdx (2)
142-153: Clear driver adapter dependency guidance for Datadog integration.The dependencies and info admonition are consistent with the broader PR pattern. Users clearly understand they can substitute the PostgreSQL adapter for their database provider.
290-342: Adapter-based initialization preserving extension capability.The PrismaPg adapter is correctly initialized and passed to PrismaClient. The combination with
$on("query")logging and$extendsfor span tagging demonstrates that adapter-based initialization doesn't preclude using Prisma extensions for observability.content/800-guides/999-making-guides.mdx (3)
94-108: Excellent template code example for adapter-based initialization.The example correctly demonstrates the PrismaPg adapter pattern and will serve as a clear reference for guide authors. Comments explaining each step are helpful.
269-277: Template dependencies and driver flexibility guidance are consistent.The template installs the correct dependencies and includes the standard info admonition about alternative database drivers. New guide writers have a clear reference.
397-406: Template seed script correctly uses PrismaPg adapter.The seed template matches the patterns established in actual guides. Guide authors can confidently follow this template.
content/800-guides/090-nextjs.mdx (3)
70-78: Consistent Next.js adapter-based setup with driver flexibility.Dependencies and driver adapter guidance follow the PR-wide pattern. The info admonition allows users to easily adapt for their database choice.
286-307: Properly configured Prisma client for Next.js with global memoization.The PrismaPg adapter is correctly initialized. The global singleton pattern with NODE_ENV check prevents multiple client instances in development, which is best practice for Next.js.
680-684: Package.json correctly reflects new adapter dependencies.The dependencies include @prisma/adapter-pg and pg as required for the adapter-based pattern, alongside @prisma/client.
content/800-guides/140-use-prisma-in-pnpm-workspaces.mdx (2)
96-104: Consistent pnpm workspaces dependency installation and driver guidance.The dependencies are correctly specified for the pnpm context, and the info admonition about alternative database drivers is properly placed and formatted.
213-248: Well-structured shared database package with adapter-based initialization.The client.ts correctly initializes PrismaPg adapter and uses globalThis for broader environment compatibility. The index.ts properly re-exports both the prisma instance and generated types, making the package consumable across the monorepo.
content/800-guides/370-bun.mdx (4)
45-46: Dependency updates correctly support adapter-based approach.The addition of
@types/pgandpgis necessary and correctly scoped—the driver packagepgmust be available at runtime for thePrismaPgadapter (instantiated in yourdb.tsandseed.tsfiles), and TypeScript types belong in devDependencies. This completes the migration away from Accelerate to a driver adapter pattern.
49-53: Info block clarifies adapter selection for different database providers.This is a helpful addition that explicitly directs users to select the correct adapter when using databases other than PostgreSQL. It acknowledges that while the guide focuses on Prisma Postgres, users may have different needs, and it empowers them with a reference link for complete information.
63-67: Setup prompt guidance manages user expectations.The info block clearly explains what users will encounter during
bun prisma init --db, including region selection and database naming. This proactive guidance reduces confusion and improves the setup experience. Placement is spot-on—right after the command that triggers these prompts.
126-137: Adapter pattern implementation is clean and consistent.Both your
db.tsandseed.tscorrectly instantiate thePrismaPgadapter and pass it toPrismaClient—the right way to use driver adapters. Your schema keepsprovider = "postgresql"(correct; the adapter is a client-side concern), and your environment setup now uses a directpostgres://connection string rather than an Accelerate proxy URL. The migration from Accelerate to driver adapters is complete and systematic throughout this guide. The only potential item worth thinking about: ifPrismaClientwill be imported in multiple places, consider exporting it fromdb.tsto avoid duplicating the adapter initialization (as you've done with theexport const prismapattern)—though I see you're already doing this correctly in the seed script import path.Also applies to: 143-184
content/800-guides/050-migrate-from-mongoose.mdx (1)
17-21: ---Clarify the warning—the traditional MongoDB connector works in v7; only driver adapters are in progress.
The guide teaches Prisma's traditional MongoDB connector pattern (
datasource db { provider = "mongodb" ...}), which is production-ready in both v6 and v7. The current warning suggests v7 support is incomplete, which is misleading.The distinction matters:
- Traditional MongoDB connector: Fully supported in v7 ✓
- MongoDB driver adapter (new Query Compiler architecture): Still in progress
Since the guide's code examples use the traditional connector, they will work in v7 without modification. Consider updating the warning to clarify this:
"This guide uses the traditional MongoDB connector, which is compatible with Prisma ORM v6 and v7. Note: MongoDB driver adapters for the new Query Compiler are still in progress."
Alternatively, if the guide will eventually migrate to driver adapters, leave the warning but add a link to tracking issues or v7 migration guidance for transparency.
⛔ Skipped due to learnings
Learnt from: aidankmcalister Repo: prisma/docs PR: 7165 File: content/800-guides/550-test-guide.mdx:85-90 Timestamp: 2025-10-08T16:23:00.388Z Learning: For .mdx files in the prisma/docs repository: Only flag code snippets for (1) exposed secrets with real-looking values that should be placeholders (e.g., API keys, database passwords, AWS credentials), or (2) blatant syntax errors like missing parentheses, brackets, braces, or mismatched delimiters. Do not flag code quality issues, anti-patterns, security vulnerabilities, missing error handling, unused variables, or any other bad practices, as documentation intentionally shows problematic code.
🍈 Lychee Link Check Report
📊 Results Overview
Errors per inputErrors in 200-orm/050-overview/100-introduction/250-should-you-use-prisma.mdx
Errors in 200-orm/100-prisma-schema/20-data-model/30-indexes.mdx
Errors in 250-postgres/300-database/525-postgres-extensions.mdx
|
…7268) * (feat) Removes Accelerate specific instructions for Prisma Postgres * feat: update Deno integration guide to include additional development dependencies
* DC-5044 `prisma-client-js` deprecated (#7219) * `prisma-client-js` deprecated * chore: empty commit * broken link updated * DC-5040 Env Vars via Config (#7227) * added env vars section to various pages * minor coderabbit updates * verbose removed * test removed redirect list * removed quickstart addition * converted quickstarts back * urls deprecated (#7226) * minimum version uodated (#7234) * DC-5043 Middleware removed from docs (#7233) * middleware deleted * more middleware removed * more middleware removed * coderabbit changes * DC-6174: Remove adapter, engine, directUrl, studio from config (#7256) * feat: add new features * fix: revert links * fix: broken links * fix: broken link * feat: restructure getting started side nav (#7245) * feat(docs): add youtube embeded link to blog post (#7220) Co-authored-by: Arthur Gamby <[email protected]> * feat(docs): add quick section to blog after the prompt (#7221) Co-authored-by: Arthur Gamby <[email protected]> * DC-5242 Astro Better-Auth Guide (#7215) * doc created * nextjs betterauth fixed * guide broken down into manageable steps * image added * Optimised images with calibre/image-actions * image updated * Optimised images with calibre/image-actions * lychee only comments on broken links * config updated * lychee updated based on CR comment * chore: trigger CI checks * ignore gnu * fix: update naming to better-auth DC-6120 * Optimised images with calibre/image-actions * chore: shorten word --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Ankur Datta <[email protected]> * feat: restructure getting started side nav * DC-5841 Removed Linkspector (#7231) * removed linkspector * retrigger * retrigger * retrigger * Update label for Prisma Postgres tab (#7236) * fix: content changes for getting started page (#7216) * fix: content changes for getting started page * fix: add redirects * getting started checkpoint * css styles fixed * updates --------- Co-authored-by: Aidan McAlister <[email protected]> Co-authored-by: Aidan McAlister <[email protected]> * DC-5820 AI Agents Served Markdown (#7237) * ai crawler check successful * ai crawlers checked * update * added anthropic * middleware update * improve detection --------- Co-authored-by: Mike Hartington <[email protected]> * feat: add prisma-orm quickstarts * fix: update times and add proper links * fix: instropspect changes * feat: add get started from prisma orm page * feat: add other orms * fix: update other tools + ppg * fix: add more clarity * fix: add prisma postgres * feat: clear migrate from early access * fix: add to existing dbs sections * Remove MCP server exploration tip (#7241) Removed tip about using Cloudflare's AI Playground for MCP server exploration, as it no longer seems to reliably work. * fix: clean-up docs files * fix: typeorm missing urls * fix: broken link * fix: update titles * fix: clear redirect loop (#7250) * fix: add generate step + sqlite fixes * fix: clean-up redirects file DC-6228 * fix: clean-up unnecessary file * fix: remove unknown word * fix: add links --------- Co-authored-by: Arthur <[email protected]> Co-authored-by: Arthur Gamby <[email protected]> Co-authored-by: Aidan McAlister <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Petra Donka <[email protected]> Co-authored-by: Aidan McAlister <[email protected]> Co-authored-by: Mike Hartington <[email protected]> * feat: update .env docs DC-6204 (#7259) * fix: clarify config file path better (#7261) * Update ORM docs (#7260) * update * use pg adapter instead of accelerate * update * add dotenv in prisma.config.ts * fix warning note * update * update * Update guides to use prisma.config.ts (#7243) * (feat) Update guides to use prisma.config.ts * refactor: Updated guides for Prisma 7 changes --------- Co-authored-by: Aman Varshney <[email protected]> * feat: update ppg for other dbs section (#7264) * feat: add kysley * feat: add drizzle * feat: add typeorm * fix: clean-up * feat: separate the sections better * fix: remove badges * feat: update prisma init related changes in other parts (#7267) * feat: add kysley * feat: add drizzle * feat: add typeorm * fix: clean-up * fix: update prisma init command changes * feat: update prisma cli docs * fix: clarify the usage of prisma init better * fix: add type defs * feat: add pg as a dependency * fix: broken internal link * Update docs to perform migrations with connection pooling and Prisma config (#7266) * feat: add mentions of new Prisma Studio (#7270) * feat: add mentions of new Prisma Studio * feat: add note for Studio for SQLite * Update content/100-getting-started/02-prisma-orm/100-quickstart/200-sqlite.mdx * Update content/100-getting-started/02-prisma-orm/200-add-to-existing-project/200-sqlite.mdx * fix: make prisma studio docs more accurate * fix: add missing punctuation * feat: add mention of mongo support coming for P7 (#7271) * feat: add mention of mongo support coming for mongo * fix: refinements * Update content/100-getting-started/02-prisma-orm/200-add-to-existing-project/800-mongodb.mdx * (feat) Removes Accelerate specific instructions for Prisma Postgres (#7268) * (feat) Removes Accelerate specific instructions for Prisma Postgres * feat: update Deno integration guide to include additional development dependencies * Update Cloudflare D1 Guides (#7273) * feat: update serverless driver docs (#7272) * feat: update serverless driver docs * feat: add connection pool defaults * feat: add query caching steps for prisma postgres * Update content/200-orm/200-prisma-client/000-setup-and-configuration/050-databases-connections/115-connection-pool.mdx * Update content/200-orm/200-prisma-client/000-setup-and-configuration/050-databases-connections/index.mdx * Update content/200-orm/050-overview/500-databases/200-database-drivers.mdx * Update content/200-orm/200-prisma-client/000-setup-and-configuration/050-databases-connections/115-connection-pool.mdx * docs(): add v7 migration guide (#7249) * docs(): add v7 migration guide * docs(): update based on feedback * Update content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/400-upgrading-to-prisma-7.mdx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * docs(): update based on feedback * docs(): update based on feedback * docs(): update based on feedback --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * update turso guide (#7274) * (feat) Explicitly running prisma generate after migrate dev command and import updates (#7276) * Update nuxt guides (#7275) * update nuxt guide * update * broken link fix * broken link fixed * fix: add SQLite notes (#7277) * fix: add SQLite notes * fix: update serverless driver doc * feat: add callout * Prisma 7 merge fix (#7278) * feat(docs): add youtube embeded link to blog post (#7220) Co-authored-by: Arthur Gamby <[email protected]> * feat(docs): add quick section to blog after the prompt (#7221) Co-authored-by: Arthur Gamby <[email protected]> * DC-5242 Astro Better-Auth Guide (#7215) * doc created * nextjs betterauth fixed * guide broken down into manageable steps * image added * Optimised images with calibre/image-actions * image updated * Optimised images with calibre/image-actions * lychee only comments on broken links * config updated * lychee updated based on CR comment * chore: trigger CI checks * ignore gnu * fix: update naming to better-auth DC-6120 * Optimised images with calibre/image-actions * chore: shorten word --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Ankur Datta <[email protected]> * DC-5841 Removed Linkspector (#7231) * removed linkspector * retrigger * retrigger * retrigger * Update label for Prisma Postgres tab (#7236) * fix: content changes for getting started page (#7216) * fix: content changes for getting started page * fix: add redirects * getting started checkpoint * css styles fixed * updates --------- Co-authored-by: Aidan McAlister <[email protected]> Co-authored-by: Aidan McAlister <[email protected]> * DC-5820 AI Agents Served Markdown (#7237) * ai crawler check successful * ai crawlers checked * update * added anthropic * middleware update * improve detection --------- Co-authored-by: Mike Hartington <[email protected]> * Remove MCP server exploration tip (#7241) Removed tip about using Cloudflare's AI Playground for MCP server exploration, as it no longer seems to reliably work. * fix: clear redirect loop (#7250) * Fix typo in environment variables reference (#7193) * Fix typo in environment variables reference * remove duplicate can be --------- Co-authored-by: Ankur Datta <[email protected]> * chore(): add summary sections to top pages (#7228) * DC-6234 Getting Started Page Updates (#7254) * arrow added * quickstart card hover * always copy button added * hover effect on copy button * spcaer added * pointless css removed * updaets * fuctional * revewrt * fixed for mobile * link fix --------- Co-authored-by: Arthur <[email protected]> Co-authored-by: Arthur Gamby <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Ankur Datta <[email protected]> Co-authored-by: Petra Donka <[email protected]> Co-authored-by: Mike Hartington <[email protected]> Co-authored-by: Odysseus Zhang <[email protected]> Co-authored-by: Mike Hartington <[email protected]> * spell check words added * Update content/100-getting-started/02-prisma-orm/100-quickstart/200-sqlite.mdx * `pgcrypto` added to spellcheck * Update content/100-getting-started/02-prisma-orm/100-quickstart/200-sqlite.mdx * Update content/100-getting-started/02-prisma-orm/100-quickstart/200-sqlite.mdx * Update content/100-getting-started/02-prisma-orm/100-quickstart/200-sqlite.mdx Co-authored-by: Ankur Datta <[email protected]> * docs(): add note about vscode version pinning (#7279) * docs(): add note about vscode version pinning * Optimised images with calibre/image-actions * Update content/250-postgres/350-integrations/500-vscode.mdx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * docs(postgres): remove accelerate reference (#7246) * DC-5044 `prisma-client-js` deprecated (#7219) * `prisma-client-js` deprecated * chore: empty commit * broken link updated * DC-5040 Env Vars via Config (#7227) * added env vars section to various pages * minor coderabbit updates * verbose removed * test removed redirect list * removed quickstart addition * converted quickstarts back * urls deprecated (#7226) * minimum version uodated (#7234) * DC-5043 Middleware removed from docs (#7233) * middleware deleted * more middleware removed * more middleware removed * coderabbit changes * DC-6174: Remove adapter, engine, directUrl, studio from config (#7256) * feat: add new features * fix: revert links * fix: broken links * fix: broken link * feat: restructure getting started side nav (#7245) * feat(docs): add youtube embeded link to blog post (#7220) Co-authored-by: Arthur Gamby <[email protected]> * feat(docs): add quick section to blog after the prompt (#7221) Co-authored-by: Arthur Gamby <[email protected]> * DC-5242 Astro Better-Auth Guide (#7215) * doc created * nextjs betterauth fixed * guide broken down into manageable steps * image added * Optimised images with calibre/image-actions * image updated * Optimised images with calibre/image-actions * lychee only comments on broken links * config updated * lychee updated based on CR comment * chore: trigger CI checks * ignore gnu * fix: update naming to better-auth DC-6120 * Optimised images with calibre/image-actions * chore: shorten word --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Ankur Datta <[email protected]> * feat: restructure getting started side nav * DC-5841 Removed Linkspector (#7231) * removed linkspector * retrigger * retrigger * retrigger * Update label for Prisma Postgres tab (#7236) * fix: content changes for getting started page (#7216) * fix: content changes for getting started page * fix: add redirects * getting started checkpoint * css styles fixed * updates --------- Co-authored-by: Aidan McAlister <[email protected]> Co-authored-by: Aidan McAlister <[email protected]> * DC-5820 AI Agents Served Markdown (#7237) * ai crawler check successful * ai crawlers checked * update * added anthropic * middleware update * improve detection --------- Co-authored-by: Mike Hartington <[email protected]> * feat: add prisma-orm quickstarts * fix: update times and add proper links * fix: instropspect changes * feat: add get started from prisma orm page * feat: add other orms * fix: update other tools + ppg * fix: add more clarity * fix: add prisma postgres * feat: clear migrate from early access * fix: add to existing dbs sections * Remove MCP server exploration tip (#7241) Removed tip about using Cloudflare's AI Playground for MCP server exploration, as it no longer seems to reliably work. * fix: clean-up docs files * fix: typeorm missing urls * fix: broken link * fix: update titles * fix: clear redirect loop (#7250) * fix: add generate step + sqlite fixes * fix: clean-up redirects file DC-6228 * fix: clean-up unnecessary file * fix: remove unknown word * fix: add links --------- Co-authored-by: Arthur <[email protected]> Co-authored-by: Arthur Gamby <[email protected]> Co-authored-by: Aidan McAlister <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Petra Donka <[email protected]> Co-authored-by: Aidan McAlister <[email protected]> Co-authored-by: Mike Hartington <[email protected]> * feat: update .env docs DC-6204 (#7259) * fix: clarify config file path better (#7261) * Update ORM docs (#7260) * update * use pg adapter instead of accelerate * update * add dotenv in prisma.config.ts * fix warning note * update * update * Update guides to use prisma.config.ts (#7243) * (feat) Update guides to use prisma.config.ts * refactor: Updated guides for Prisma 7 changes --------- Co-authored-by: Aman Varshney <[email protected]> * feat: update ppg for other dbs section (#7264) * feat: add kysley * feat: add drizzle * feat: add typeorm * fix: clean-up * feat: separate the sections better * fix: remove badges * feat: update prisma init related changes in other parts (#7267) * feat: add kysley * feat: add drizzle * feat: add typeorm * fix: clean-up * fix: update prisma init command changes * feat: update prisma cli docs * fix: clarify the usage of prisma init better * fix: add type defs * feat: add pg as a dependency * fix: broken internal link * Update docs to perform migrations with connection pooling and Prisma config (#7266) * feat: add mentions of new Prisma Studio (#7270) * feat: add mentions of new Prisma Studio * feat: add note for Studio for SQLite * Update content/100-getting-started/02-prisma-orm/100-quickstart/200-sqlite.mdx * Update content/100-getting-started/02-prisma-orm/200-add-to-existing-project/200-sqlite.mdx * fix: make prisma studio docs more accurate * fix: add missing punctuation * feat: add mention of mongo support coming for P7 (#7271) * feat: add mention of mongo support coming for mongo * fix: refinements * Update content/100-getting-started/02-prisma-orm/200-add-to-existing-project/800-mongodb.mdx * docs(postgres): remove accelerate reference Remove reference to accelerate and rework the docs to account for the new v7 changes * Optimised images with calibre/image-actions * docs(): update with feedback * Optimised images with calibre/image-actions * docs(ppg): updates * docs(): update based on feedback * docs(): update based on feedback --------- Co-authored-by: Aidan McAlister <[email protected]> Co-authored-by: Ankur Datta <[email protected]> Co-authored-by: Arthur <[email protected]> Co-authored-by: Arthur Gamby <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Petra Donka <[email protected]> Co-authored-by: Aidan McAlister <[email protected]> Co-authored-by: Aman Varshney <[email protected]> Co-authored-by: Nurul Sundarani <[email protected]> * docs(metrics): remove metrics API (#7248) * DC-5044 `prisma-client-js` deprecated (#7219) * `prisma-client-js` deprecated * chore: empty commit * broken link updated * DC-5040 Env Vars via Config (#7227) * added env vars section to various pages * minor coderabbit updates * verbose removed * test removed redirect list * removed quickstart addition * converted quickstarts back * urls deprecated (#7226) * minimum version uodated (#7234) * DC-5043 Middleware removed from docs (#7233) * middleware deleted * more middleware removed * more middleware removed * coderabbit changes * docs(metrics): remove metrics API * DC-6174: Remove adapter, engine, directUrl, studio from config (#7256) * feat: add new features * fix: revert links * fix: broken links * fix: broken link * feat: restructure getting started side nav (#7245) * feat(docs): add youtube embeded link to blog post (#7220) Co-authored-by: Arthur Gamby <[email protected]> * feat(docs): add quick section to blog after the prompt (#7221) Co-authored-by: Arthur Gamby <[email protected]> * DC-5242 Astro Better-Auth Guide (#7215) * doc created * nextjs betterauth fixed * guide broken down into manageable steps * image added * Optimised images with calibre/image-actions * image updated * Optimised images with calibre/image-actions * lychee only comments on broken links * config updated * lychee updated based on CR comment * chore: trigger CI checks * ignore gnu * fix: update naming to better-auth DC-6120 * Optimised images with calibre/image-actions * chore: shorten word --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Ankur Datta <[email protected]> * feat: restructure getting started side nav * DC-5841 Removed Linkspector (#7231) * removed linkspector * retrigger * retrigger * retrigger * Update label for Prisma Postgres tab (#7236) * fix: content changes for getting started page (#7216) * fix: content changes for getting started page * fix: add redirects * getting started checkpoint * css styles fixed * updates --------- Co-authored-by: Aidan McAlister <[email protected]> Co-authored-by: Aidan McAlister <[email protected]> * DC-5820 AI Agents Served Markdown (#7237) * ai crawler check successful * ai crawlers checked * update * added anthropic * middleware update * improve detection --------- Co-authored-by: Mike Hartington <[email protected]> * feat: add prisma-orm quickstarts * fix: update times and add proper links * fix: instropspect changes * feat: add get started from prisma orm page * feat: add other orms * fix: update other tools + ppg * fix: add more clarity * fix: add prisma postgres * feat: clear migrate from early access * fix: add to existing dbs sections * Remove MCP server exploration tip (#7241) Removed tip about using Cloudflare's AI Playground for MCP server exploration, as it no longer seems to reliably work. * fix: clean-up docs files * fix: typeorm missing urls * fix: broken link * fix: update titles * fix: clear redirect loop (#7250) * fix: add generate step + sqlite fixes * fix: clean-up redirects file DC-6228 * fix: clean-up unnecessary file * fix: remove unknown word * fix: add links --------- Co-authored-by: Arthur <[email protected]> Co-authored-by: Arthur Gamby <[email protected]> Co-authored-by: Aidan McAlister <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Petra Donka <[email protected]> Co-authored-by: Aidan McAlister <[email protected]> Co-authored-by: Mike Hartington <[email protected]> * feat: update .env docs DC-6204 (#7259) * fix: clarify config file path better (#7261) * Update ORM docs (#7260) * update * use pg adapter instead of accelerate * update * add dotenv in prisma.config.ts * fix warning note * update * update * Update guides to use prisma.config.ts (#7243) * (feat) Update guides to use prisma.config.ts * refactor: Updated guides for Prisma 7 changes --------- Co-authored-by: Aman Varshney <[email protected]> * feat: update ppg for other dbs section (#7264) * feat: add kysley * feat: add drizzle * feat: add typeorm * fix: clean-up * feat: separate the sections better * fix: remove badges * feat: update prisma init related changes in other parts (#7267) * feat: add kysley * feat: add drizzle * feat: add typeorm * fix: clean-up * fix: update prisma init command changes * feat: update prisma cli docs * fix: clarify the usage of prisma init better * fix: add type defs * feat: add pg as a dependency * fix: broken internal link * Update docs to perform migrations with connection pooling and Prisma config (#7266) * feat: add mentions of new Prisma Studio (#7270) * feat: add mentions of new Prisma Studio * feat: add note for Studio for SQLite * Update content/100-getting-started/02-prisma-orm/100-quickstart/200-sqlite.mdx * Update content/100-getting-started/02-prisma-orm/200-add-to-existing-project/200-sqlite.mdx * fix: make prisma studio docs more accurate * fix: add missing punctuation * feat: add mention of mongo support coming for P7 (#7271) * feat: add mention of mongo support coming for mongo * fix: refinements * Update content/100-getting-started/02-prisma-orm/200-add-to-existing-project/800-mongodb.mdx * Restore content/200-orm/200-prisma-client/600-observability-and-logging/240-metrics.mdx * docs(): update based on feedback * Update content/200-orm/200-prisma-client/000-setup-and-configuration/050-databases-connections/115-connection-pool.mdx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: Aidan McAlister <[email protected]> Co-authored-by: Ankur Datta <[email protected]> Co-authored-by: Arthur <[email protected]> Co-authored-by: Arthur Gamby <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Petra Donka <[email protected]> Co-authored-by: Aidan McAlister <[email protected]> Co-authored-by: Aman Varshney <[email protected]> Co-authored-by: Nurul Sundarani <[email protected]> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * fix build errors * fix * Add callout for bun and sqlite (#7280) * Add caalout for bun and sqlite * add link to bun docs * fix: get started path url (#7281) * fix: clarify studio better (#7282) * feat: add connection pooling gif (#7284) --------- Co-authored-by: Aidan McAlister <[email protected]> Co-authored-by: Arthur <[email protected]> Co-authored-by: Arthur Gamby <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Petra Donka <[email protected]> Co-authored-by: Aidan McAlister <[email protected]> Co-authored-by: Mike Hartington <[email protected]> Co-authored-by: Aman Varshney <[email protected]> Co-authored-by: Nurul Sundarani <[email protected]> Co-authored-by: Mike Hartington <[email protected]> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Odysseus Zhang <[email protected]>
Completes: #DC-6263
Summary by CodeRabbit
Documentation
New Features