From 968f8a1242638caa583f5627aac72878ed869353 Mon Sep 17 00:00:00 2001 From: Jonathan Mooney Date: Tue, 11 Nov 2025 16:23:50 -0600 Subject: [PATCH] fix: remove --no-engine flag from prisma generate The --no-engine flag was preventing Prisma from generating the local query engine binaries, which are required when using a standard PostgreSQL connection URL (postgresql://). This flag should only be used when exclusively using Prisma Accelerate (prisma:// URLs). The application already handles both scenarios correctly in src/lib/prisma.ts by conditionally applying the Accelerate extension only when the database URL uses the prisma:// protocol. This fix allows the application to work with both: - Local PostgreSQL (postgresql://) - Prisma Accelerate (prisma:// or prisma+postgres://) Fixes Prisma error: "the URL must start with the protocol prisma:// or prisma+postgres://" Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cabca9b..0021e41 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "build": "next build", "start": "next start", "lint": "next lint", - "postinstall": "prisma generate --no-engine", + "postinstall": "prisma generate", "sync-prod-data": "tsx scripts/sync-prod-data-enhanced.ts", "sync-prod-data:dry-run": "tsx scripts/sync-prod-data-enhanced.ts --dry-run", "sync-prod-data:original": "tsx scripts/sync-prod-data.ts"