Drizzle Kit dotenv support #3405
AlexBlokh
started this conversation in
Show and tell
Replies: 2 comments
-
Love it! Do we have a way to track when will this dotenv support land? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Why not use built-in Node.js features? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As of now
drizzle-kit
config will be automatically supplied with.env
file via backed indotenv
package.In the next version kit will consume
.env*
files based onNODE_ENV
and will be compatible with Bun env consumption. Kit will not consume dotenv files when run in Bun, since Bun already does:we will read the following files automatically (listed in order of increasing precedence)
.env
.env.production
.env.development
.env.test
(depending on value ofNODE_ENV
).env.local
we will support variables expansion:
you will have an ability to provide custom env file or multiple files or tell Drizzle to not consume files automatically
drizzle-kit --env-file=.env.custom
drizzle-kit --env-file=.env.custom --env-file=.env.custom2
drizzle-kit --no-env
-> load custom/yourselfUPD 05.11.24:
pending Bun fix, for now we'll use
dotenvx
for every runtimeBeta Was this translation helpful? Give feedback.
All reactions