My project doesn't set up Neon

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

GET /admin 200 in 5171ms
⨯ PrismaClientInitializationError:
Invalid prisma.book.count() invocation:

Can’t reach database server at your-neon-connection-string-here:5432

Please make sure your database server is running at your-neon-connection-string-here:5432.
at async AdminDashboard (./src/app/admin/page.tsx:18:24)
digest: “1104123941”
GET /api/auth/providers 200 in 19ms
GET /api/auth/csrf 200 in 4ms
POST /api/auth/callback/credentials 401 in 5012ms

Steps to Reproduce

Steps to Reproduce

Create a Next.js project with Prisma + Postgres.

Add .env.local with DATABASE_URL=postgresql://user@localhost:5432/rebo_dev.

Run npm run dev.

Open /admin → observe Prisma error still referencing your-neon-connection-string-here.

Expected Behavior

Cursor should respect the .env.local file and not inject or override DATABASE_URL with a Neon placeholder string.

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.4.5 (Universal)
VSCode Version: 1.99.3
Commit: af58d92614edb1f72bdd756615d131bf8dfa5290
Date: 2025-08-13T02:08:56.371Z (4 days ago)
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.6.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

As this bug almost 100% isn’t with cursor, I don’t even know if it belongs in this forum category.

Other than that, it would be very hard to help you without any source code or more in depth explanations.

hi @haonguyen thank you for your report and welcome to Cursor Forum.

As @leanderriefel states this looks like an NextJS code issue and not something that is an error in Cursor.

Perhaps someone who works with NextJS can help you with your issue.
Try asking in their forum.