fix: move seed command to prisma.config.ts (Prisma 7 requirement)

Prisma 7 no longer reads the seed command from package.json.
It must be set in prisma.config.ts under migrations.seed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
jerick
2026-04-20 17:01:18 -04:00
parent adb5d144a0
commit 42f1d34ddd

View File

@@ -7,6 +7,7 @@ export default defineConfig({
schema: "prisma/schema.prisma", schema: "prisma/schema.prisma",
migrations: { migrations: {
path: "prisma/migrations", path: "prisma/migrations",
seed: "tsx prisma/seed.ts",
}, },
datasource: { datasource: {
url: process.env["DATABASE_URL"], url: process.env["DATABASE_URL"],