Fix prisma client output path: target .prisma/client, not @prisma/client

Prisma 5.22's generator wants the explicit output to point at the
internal .prisma/client directory (which @prisma/client forwards to),
not the @prisma/client package directory itself — pointing it there
directly made `prisma generate` fail outright ("replace ... with
../backend/node_modules/.prisma/client").
This commit is contained in:
Giuseppe Lombardo 2026-08-13 07:41:30 +00:00
parent 791b9bb01e
commit 3629f5f66f

View File

@ -10,7 +10,7 @@ generator client {
// "Projekt-Root" ausgehend vom Schema-Pfad nach oben, findet dort kein // "Projekt-Root" ausgehend vom Schema-Pfad nach oben, findet dort kein
// package.json und weicht auf einen unzuverlässigen Auto-Install-Fallback // package.json und weicht auf einen unzuverlässigen Auto-Install-Fallback
// aus (schreibt dann z. B. nach /root/node_modules statt backend/). // aus (schreibt dann z. B. nach /root/node_modules statt backend/).
output = "../backend/node_modules/@prisma/client" output = "../backend/node_modules/.prisma/client"
} }
datasource db { datasource db {