Skip to content

docs: fix links and configuration steps for Prisma adapter#13425

Open
effessdev wants to merge 1 commit into
nextauthjs:mainfrom
effessdev:docs/prisma-adapter-fix
Open

docs: fix links and configuration steps for Prisma adapter#13425
effessdev wants to merge 1 commit into
nextauthjs:mainfrom
effessdev:docs/prisma-adapter-fix

Conversation

@effessdev
Copy link
Copy Markdown

@effessdev effessdev commented Apr 29, 2026

☕️ Reasoning

Updated the Prisma Adapter documentation to resolve broken links and configuration errors. Key changes:

  • Fixed the broken import link import { PrismaClient } from "../src/generated/client", which was causing error squiggles.
  • Added the mandatory{ adapter } argument to PrismaClient() which was missing previosly.
  • Refactored schema.prisma by removing url = env("DATABASE_URL") to align with newer versions that consolidate this configuration in prisma.config.ts (a step handled automatically during prisma init); maintaining it in the schema now triggers an error.
  • Added a reminder to run prisma generate in the hosting environment.

Next.js app used for testing the changes: https://github.com/effessdev2/authjs-prisma
Vercel deployment of the same app: https://authjs-prisma.vercel.app/
OAuth provider used for testing: GitHub

🧢 Checklist

  • Documentation
  • Tests
  • Ready to be merged

🎫 Affected issues

None.

@effessdev effessdev requested a review from ndom91 as a code owner April 29, 2026 10:59
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
auth-docs Ready Ready Preview, Comment Apr 29, 2026 11:03am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
next-auth-docs Ignored Ignored Preview Apr 29, 2026 11:03am

Request Review

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 29, 2026

@felixfsdev is attempting to deploy a commit to the authjs Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant