feat(docs): add Next.js on Vercel guide for Prisma Postgres#7878
feat(docs): add Next.js on Vercel guide for Prisma Postgres#7878aidankmcalister wants to merge 3 commits intomainfrom
Conversation
Linear: DR-8359
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🍈 Lychee Link Check Report13 links: ✅ All links are working!Full Statistics Table
|
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
apps/docs/content/docs/guides/postgres/vercel.mdx (1)
17-59:⚠️ Potential issue | 🟠 Major | ⚡ Quick winAdd explicit step to pull environment variables before running Prisma Studio locally
The documentation implies
DATABASE_URLis available locally but doesn't explain how users get it there. Vercel Marketplace integrations automatically set env vars in the project, but they don't automatically populate local environments—users must explicitly runvercel env pullto sync them into.env.localbefore commands likeprisma studiocan accessDATABASE_URL. Without this step, first-time users will encounter failures when trying to run local tooling.Suggested documentation update
### View and edit data in Prisma Studio -To view and edit data in your Prisma Postgres instance, run Prisma Studio locally where your `DATABASE_URL` is set: +To view and edit data in your Prisma Postgres instance, first pull your environment variables locally, then run Prisma Studio: + +```npm +vercel env pull .env.local +``` ```npm npx prisma studio</details> <details> <summary>🤖 Prompt for AI Agents</summary>Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.In
@apps/docs/content/docs/guides/postgres/vercel.mdxaround lines 17 - 59, The
docs mention running Prisma Studio but don't tell users how to get DATABASE_URL
locally; add an explicit step instructing users to run the Vercel CLI
environment pull (e.g., "vercel env pull .env.local") to sync environment
variables into their local file (such as .env.local) before running "npx prisma
studio" so Prisma Studio can read DATABASE_URL; reference DATABASE_URL and the
Prisma Studio step in the "View and edit data in Prisma Studio" section and
include the exact vercel env pull command and target file.</details> </blockquote></details> </blockquote></details>🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. Outside diff comments: In `@apps/docs/content/docs/guides/postgres/vercel.mdx`: - Around line 17-59: The docs mention running Prisma Studio but don't tell users how to get DATABASE_URL locally; add an explicit step instructing users to run the Vercel CLI environment pull (e.g., "vercel env pull .env.local") to sync environment variables into their local file (such as .env.local) before running "npx prisma studio" so Prisma Studio can read DATABASE_URL; reference DATABASE_URL and the Prisma Studio step in the "View and edit data in Prisma Studio" section and include the exact vercel env pull command and target file.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID:
eab908c3-c912-45d8-bbec-0c3bcf626844📒 Files selected for processing (1)
apps/docs/content/docs/guides/postgres/vercel.mdx
Linear: DR-8359
Summary by CodeRabbit