Closed amine-tayani closed 11 months ago
Hey @amine-tayani, did you place your environment variable in a .env
file or exported it in your shell first?
hey @millsp i have already setup the .env.local file with DATABASE_URL variable
i set it up like this : DATABASE_URL=postgresql://postgres...................
without any double quotes or anything
Prisma will only load .env
files so .env.local
is not loaded. You can either rename your .env.local
to .env
, or create a .env
. Alternatively, you can use the dotenv
cli instead, for example:
dotenv -e .env.local -- npx prisma generate
Seems to have worked. Thanks @millsp
Bug description
How to reproduce
pnpm dlx prisma migrate dev
orpnpm dlx prisma db push
Expected behavior
should run the migrations and supabase should show the tables
Prisma information
Schema.prisma file
Environment & setup
Prisma Version
prisma@5.7.1 @prisma/client@5.7.1