docs(docs): replace hosted Accelerate connections in the Netlify, viewing-data and Console guides - #8220
Conversation
…ate transition guide The Prisma 7 tabs never moved prisma.config.ts off the Accelerate URL, which the to-v7 upgrade page tells Accelerate users to put there, so CLI commands would keep using the retiring connection. Add a prisma.config.ts snippet to both Prisma 7 paths. Also list @prisma/client/edge in the search and removal steps: a v6 edge client requires an Accelerate URL and fails at runtime with a postgres:// string. Fix a dangling colon on the serverless driver page.
…retirement in the v7 upgrade guide - no-rust-engine.mdx: the snippet titled src/lib/prisma.ts imported ../generated/prisma/client, which resolves to src/generated; use ../../generated/prisma/client to match the generator output. - guides/upgrade-prisma-orm/v7.mdx: apply the same Accelerate retirement notice and wording that this PR added to orm/v6/more/upgrades/to-v7.mdx, so the two copies of the upgrade guide agree.
…sole guides Rewrite the Netlify guide to use the pg driver adapter with a pooled TCP connection string, document direct TCP for Prisma Studio and third-party database editors, and show pooled/direct Prisma Postgres URLs in the Console getting-started guide. Remaining Accelerate URLs are kept only inside retirement warnings that link to the transition guide. Refs: #8218
…uide Split the Netlify example into a pooled application connection string and a direct connection string for Prisma CLI commands, and title the new install code block so lint:code reports no new violations. Refs: #8218
🍈 Lychee Link Check Report31 links: ✅ All links are working!Full Statistics Table
|
The step-by-step example told readers to put the pooled string in DATABASE_URL and the direct string in DIRECT_URL, but `prisma init` generates a prisma.config.ts that reads DATABASE_URL, and no step said to change it. The following `prisma migrate dev` and `prisma studio` steps would therefore run through the connection pooler, which the connecting guide documents as failing for migrations. - Add a tutorial step that switches the generated prisma.config.ts to DIRECT_URL, and tell readers in step 2 to keep both connection strings. - Replace the `../path/to/generated/prisma/client` placeholder with the real path implied by the schema's `output` in the same tutorial. - Import from `prisma/config` in the Additional considerations snippet, matching what `prisma init` generates and the Prisma Config reference. Refs: #8218
|
Reviewed Found: in Changed (Netlify guide only):
Everything else read correctly against the connecting, serverless-driver and switch-from-accelerate pages. Will re-review the new head from scratch. — reviewer |
|
Re-reviewed One finding, fixed in Found: in Changed: the warning now names both forms and ties them to their products: Accelerate environments from Step 4 use Checked and left alone: the Netlify guide's "set Will re-review the new head from scratch. — reviewer |
|
Closing out the review: this PR was approved and merged at What merged is the round-1 head, which I had already read in full and gated ( Since the branch is closed I have not pushed anything further. I proposed a follow-up builder task (awaiting human approval) to land that one-line fix through a fresh PR from — reviewer |
Overview
Three Prisma Postgres pages still told users to connect through the hosted Accelerate connection that #8218 documents as retiring on December 1, 2026, and carried no retirement notice. This rewrites them to the supported connection paths and keeps the remaining Accelerate URLs only inside
:::warning[Accelerate retirement]blocks that link to Connect to Prisma Postgres without Accelerate.What it delivers
guides/postgres/netlify.mdxPrismaPgfrom@prisma/adapter-pgover a pooled TCP connection string instead ofwithAccelerate()+accelerateUrl. Netlify Functions run on a conventional Node.js runtime, so pooled TCP is the recommended path.DATABASE_URL(pooled.db.prisma.io) for application queries and a directDIRECT_URL(db.prisma.io) for Prisma CLI commands, withprisma.config.tspointing atDIRECT_URL, matching Connecting to your database. Notes thatDIRECT_URLmust also be set in the Netlify site environment so thepostinstallgenerate step can resolve it.package.jsonswaps@prisma/extension-acceleratefor@prisma/adapter-pgandpg, and the setup steps install them.DATABASE_URLis still a hosted Accelerate URL.guides/postgres/viewing-data.mdxprisma.config.tsthat readsDIRECT_URL, so the CLI bypasses the pooler.db.prisma.io:5432withsslmode=require, with a field table for host/port/database/user/password. This replaces the@prisma/ppg-tunnelwalkthrough, which existed only because the hosted Accelerate URL could not be used over TCP; the retirement warning names the tunnel as the legacy path and points at the transition guide.console/getting-started.mdx@prisma/adapter-pgfor Node runtimes and the serverless driver for edge/TCP-constrained runtimes. The oldprisma://accelerate.prisma-data.net/?api_key=...example survives only inside the retirement warning.No
withAccelerate,accelerateUrloraccelerate.prisma-data.netremains in these three files outside an explicit retirement warning.How I tested it
From
apps/docs, on the merged head:pnpm lint:links— 687 files, 0 errorspnpm lint:spellcheck— 826 files, 0 issuespnpm test:llm-markdown— 9/9 snapshots passpnpm lint:code— no new violations in the touched files (netlify 6 → 6, console 1 → 1, viewing-data 7 → 3); repo total 6313 → 6309pnpm lint:images,pnpm lint:agent-ready,pnpm test— cleanAssumptions and decisions
/postgres/database/switch-from-acceleratedid not exist onmainyet and the warning links would otherwise faillint:links. feat: serverless driver docs #8218 merged while the work was in progress, somainwas merged in (not rebased, to avoid a force-push); the diff againstmainis exactly the three files.@prisma/ppg-tunnelwalkthrough inviewing-data.mdxwas removed rather than kept behind a warning: with direct TCP credentials available from Console for every Prisma Postgres database, the tunnel is no longer needed for GUI editors, and every tunnel example required a hosted Accelerate URL. Happy to restore it as a clearly-labelled legacy section if you prefer.DATABASE_URLas the application connection string, mirroring the siblingguides/postgres/vercel.mdxpage, and addsDIRECT_URLonly for CLI use.prisma.config.tssnippet inviewing-data.mdximports fromprisma/config, matchingpostgres/database/*; the olderguides/postgres/*pages still import from@prisma/config(see follow-ups).Refs: prisma/web#8218rather than a Linear reference, since no Linear issue was supplied with this task.Follow-ups noticed, left alone
guides/postgres/netlify.mdxandguides/postgres/vercel.mdximportdefineConfig/envfrom@prisma/config, whilepostgres/database/*andorm/v7/*useprisma/config. Worth aligning across the guides in one pass.img/ppg-tableplus.png,ppg-datagrip.png,ppg-dbeaver.pngandppg-postico.pngscreenshots still show127.0.0.1tunnel connections; the surrounding text now describes a directdb.prisma.ioconnection. New screenshots would make the page consistent.console/getting-started.mdxstill has a "For Accelerate" resource-creation step in Step 4 that predates the retirement announcement.