Sturlen
Explore posts from serversDTDrizzle Team
•Created by Sturlen on 6/12/2023 in #help
Drizzle-kit can't load env file via t3-env
I'd like to use t3-env to validate my env variables in my Drizzle config file. I've tried importing t3-env in the config.ts file, but I'm hit with the error
SyntaxError: Cannot use import statement outside a module
in env.mjs
, which I find odd since it is explicitly marked as an ES module. Other than this, t3-env works fine with drizzle-orm.
Full Error:
This is my Drizzle config file:
I am I doing something wrong or is this just something drizzle-kit does not support atm?17 replies