Error: The datasource property is required in your Prisma config file when using prisma migrate dev (Prisma 7)

On Prisma 7, running prisma migrate dev fails with "Error: The datasource property is required in your Prisma config file when using prisma migrate dev", even though prisma.config.ts exists with a datasource url. The reporter had the config file inside the prisma/ folder instead of the project root. Prisma 7 moved the database URL from schema.prisma to prisma.config.ts and only looks for that file in the project root by default.

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