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>
16 lines
406 B
TypeScript
16 lines
406 B
TypeScript
// This file was generated by Prisma, and assumes you have installed the following:
|
|
// npm install --save-dev prisma dotenv
|
|
import "dotenv/config";
|
|
import { defineConfig } from "prisma/config";
|
|
|
|
export default defineConfig({
|
|
schema: "prisma/schema.prisma",
|
|
migrations: {
|
|
path: "prisma/migrations",
|
|
seed: "tsx prisma/seed.ts",
|
|
},
|
|
datasource: {
|
|
url: process.env["DATABASE_URL"],
|
|
},
|
|
});
|