URL_INVALID
The env variables are defined when using
bun run push
but not when using npm run push
or pnpm run push
, resulting in LibsqlError: URL_INVALID: The URL is not in a valid format
because url is undefined?authToken=undefined
Solution:Jump to solution
bun parsed the
.env
file automatically but node does not. You need you use dotenv
or something similar when using pnpm/npm/yarn4 Replies
Solution
bun parsed the
.env
file automatically but node does not. You need you use dotenv
or something similar when using pnpm/npm/yarnHow come the docs don't show this? And shouldn't drizzle-kit abstract this away?
How do you think drizzle-kit should abstract away the environment variables to connect to your database?
I meant reading the env variables with dotenv or some equivalent
But now that I think about it, probably not drizzle-kit's responsibility