Drizzle kit - Invalid environment variables
Hi, when trying to run " npx drizzle-kit introspect:pg", I get this error:
My .env file is populated with these values and the schema in my env.js file has been updated accordingly too. So far the only way I've been able to get introspect or generate to run is by bypassing the t3 env validation and reading the variables with dotenv. Has anyone else run into this or know how to fix it?
1 Reply
I fixed this with 2 lines
in your src/env.js put
import { config } from "dotenv";
then config();