Drizzle-kit database push connection error
When trying to run
drizzle-kit push:mysql
to push my schema to Planetscale, I get the following error.
Am I missing something?
This is my drizzle.config.ts
And my .env
file looks like this:
3 Replies
AFAIK the standard
dotenv
does not support dynamic values
Does it work if you just set the string manually instead of dynamically?
You may also need to wrap the whole env in ' '
to ensure characters are escaped correctlyAha, gotcha. That solved the problem. Thanks!
You could also have it be dynamic: