mirror of
https://github.com/stack-auth/stack.git
synced 2026-07-20 21:29:36 +08:00
Add bulldozerDb as a global on globalThis
This commit is contained in:
parent
e9d4a09750
commit
784454522d
@ -77,6 +77,7 @@ const bulldozerDb = declareBulldozerDatabase(
|
||||
{ migrations: schema.migrations },
|
||||
);
|
||||
await traceSpan("bulldozer-js.applyRemainingMigrations", async () => await bulldozerDb.applyRemainingMigrations());
|
||||
(globalThis as any).bulldozerDb = bulldozerDb;
|
||||
|
||||
function jsonResponse(body: unknown, init?: ResponseInit) {
|
||||
return new Response(JSON.stringify(body), {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user