Is it possible to use t3env from a Drizzle config file?
I'm using create-t3-app but I'd like to use Drizzle instead of Prisma. I've managed to get it working, but the one pain point I have is that I can't get t3env to validate variables in my Drizzle config file. I've tried importing it normally 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 and runs fine when building the page.
Full Error:
This is my Drizzle config file:
Let me know if this is right place to post this or if a gh issue would be more appropriate1 Reply
drizzle-kit is going to have esm support this week. After that it should work properly