if you have .env file and it's located in the correct place, than you can try one more option without installing dotenv
just remove prisma.config.ts:
When using
prisma.config.ts, environment variables from.envfiles are not automatically loaded.
link: Prisma documentation