Skip to content

Conversation

@ArthurGamby
Copy link
Contributor

@ArthurGamby ArthurGamby commented Oct 24, 2025

Summary by CodeRabbit

  • Documentation
    • Added a comprehensive guide for Next.js + Prisma database integration with setup, configuration patterns, testing and verification workflows.
    • Published the new guide in the Prompts section and updated the sidebar/navigation to surface the Next.js prompt alongside existing prompts.

@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

Redirect check

This PR probably requires the following redirects to be added to static/_redirects:

  • This PR does not change any pages in a way that would require a redirect.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 24, 2025

Walkthrough

Adds a new AI prompt guide at content/900-ai/prompts/nextjs.mdx detailing a Next.js + Prisma + Postgres integration workflow, plus a sidebar update in sidebars.ts to expose the new prompt under the Prompts category.

Changes

Cohort / File(s) Summary
AI Prompt Documentation
content/900-ai/prompts/nextjs.mdx
Added a comprehensive prompt guide with installation steps, Prisma configuration (generator/output/provider), lib/prisma.ts singleton pattern, dotenv usage, Accelerate extension guidance, API/page code templates, npm scripts, test script, and verification/failure analysis.
Navigation Configuration
sidebars.ts
Added "ai/prompts/nextjs" to the aiSidebar Prompts items alongside existing entries.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Pre-merge checks

❌ Failed checks (1 warning)
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.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title "DC-5274-nextjs-ai-prompt" is related to the main change in the pull request, which adds a comprehensive Next.js + Prisma AI prompt guide file (nextjs.mdx) and updates the sidebars to include it. The "nextjs-ai-prompt" portion of the title clearly identifies the primary change, though the inclusion of the ticket number (DC-5274) as a prefix gives the title more of a branch name appearance rather than a descriptive PR title format. A teammate scanning the history would understand that this PR adds a Next.js AI prompt, making the title sufficiently clear despite the formatting choice.

📜 Recent 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 fb68e27 and a39de3b.

📒 Files selected for processing (1)
  • content/900-ai/prompts/nextjs.mdx (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-10-10T13:13:30.534Z
Learnt from: aidankmcalister
PR: prisma/docs#7167
File: content/900-ai/prompts/astro.mdx:84-85
Timestamp: 2025-10-10T13:13:30.534Z
Learning: Do not review or comment on files in the `ai/prompts/` directory or matching the path pattern `content/900-ai/prompts/` in the prisma/docs repository.

Applied to files:

  • content/900-ai/prompts/nextjs.mdx
⏰ 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: Check internal links
  • GitHub Check: runner / linkspector
  • GitHub Check: Cloudflare Pages
🔇 Additional comments (1)
content/900-ai/prompts/nextjs.mdx (1)

1-500: Skipping review per learnings guidance.

Per established learnings from previous reviews in this repository, files in the content/900-ai/prompts/ directory are not subject to line-by-line code review. This guidance was documented in PR #7167 (2025-10-10) and applies to this file.


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.

@github-actions
Copy link
Contributor

Dangerous URL check

No absolute URLs to prisma.io/docs found.
No local URLs found.

@github-actions
Copy link
Contributor

🍈 Lychee Link Check Report

Note: Links are cached for 5 minutes to avoid unnecessary requests, and speed up consecutive runs.

📊 Results Overview

Status Count
🔍 Total 2416
✅ Successful 2389
⏳ Timeouts 0
🔀 Redirected 0
👻 Excluded 26
❓ Unknown 0
🚫 Errors 0
⛔ Unsupported 1
Full Github Actions output

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Oct 24, 2025

Deploying docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: a39de3b
Status: ✅  Deploy successful!
Preview URL: https://f151ac3e.docs-51g.pages.dev
Branch Preview URL: https://dc-5274-nextjs-ai-prompt.docs-51g.pages.dev

View logs

coderabbitai[bot]
coderabbitai bot previously approved these changes Oct 24, 2025
@github-actions
Copy link
Contributor

🍈 Lychee Link Check Report

Note: Links are cached for 5 minutes. Failed links (timeouts, rate limits) are retried in a second run with longer timeout.

📊 Results Overview

Status Count
🔍 Total 2416
✅ Successful 2387
⏳ Timeouts 0
🔀 Redirected 0
👻 Excluded 26
❓ Unknown 0
🚫 Errors 2
⛔ Unsupported 1

Errors per input

Errors in 200-orm/200-prisma-client/600-observability-and-logging/250-opentelemetry-tracing.mdx

Errors in 600-about/30-docs-components/01-mdx-examples.mdx

@ArthurGamby ArthurGamby deleted the DC-5274-nextjs-ai-prompt branch October 24, 2025 16:23
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.

2 participants