Search
Star
Feedback
Setup for Free
Β© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Top-level await in drizzle.config.ts - Drizzle Team
DT
Drizzle Team
β’
2y ago
β’
12 replies
Lloyd
Top-level await in drizzle.config.ts
Is there a reason top
-level
await
await
is only supported in migrate
/studio commands and not generate
/check
, is this something that can be trivially added to drizzle
-kit
?
In my case I
'm reading the secret asynchronously via AWS
.
There
's an open issue with a workaround posted
, which does work
, but is kind of gross
:
https://github.com/drizzle-team/drizzle-orm/issues/1982#issuecomment-2112340840
GitHub
[FEATURE]: Support Top-level await in `drizzle.config.ts` Β· Issue #...
Describe what you want I want to write a configuration as follows
. Here
, fetchDatabaseUri is a function that retrieves authentication information from AWS Secrets Manager and returns the database U
.
.
.
Drizzle Team
Join
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
top level await workaround in drizzle.config?
DT
Drizzle Team / help
5mo ago
asynchronous drizzle.config.ts
DT
Drizzle Team / help
2y ago
environment variables undefined in drizzle.config.ts
DT
Drizzle Team / help
3y ago
Top Level await issue with latest Drizzle@0.28.1, mysql2, planetscale
DT
Drizzle Team / help
3y ago