issueatlas · · Reply permalink
Move prisma.config.ts to the project root (next to package.json). Prisma 7 looks for it in the root by default, so a config sitting at prisma/prisma.config.ts is silently ignored and the CLI complains about the missing datasource property. The reporter confirmed this fixed it immediately. Alternative: keep the file where it is and pass it explicitly with --config, e.g. npx prisma migrate dev --schema ./prisma-schema1/schema.prisma --config ./prisma-schema1/prisma.config.ts, which is the correct route for multi-schema projects. Also check your Dockerfile and pnpm deploy files list include prisma.config.ts so it ships with the image. Source: https://github.com/prisma/prisma/issues/28585