Drizzle not pulling in environment variables
So originally my app was fine with the env variables originally but now it is not working. I am not sure what is going on. I have tried to use the dotenv package but that did not work.
my drizzle config
the error i am getting
Solution:Jump to solution
^- this. also, do you get the same error while building your app or just pushing?
P.S. if you want to use dotenv as a workaround, you have to import variables using
process.env.YOU_ENV_VAR
as it won't affect the t3env env
object...5 Replies
Are you using the t3 stack?
Solution
^- this. also, do you get the same error while building your app or just pushing?
P.S. if you want to use dotenv as a workaround, you have to import variables using
process.env.YOU_ENV_VAR
as it won't affect the t3env env
object
If you are using planetscale you need these variables
Right ok thankyou, I’m not using the t3 stack just the environment variable package but I’ll try this