From eb41fdc754595289e74762d5e1c323eeebe3a82b Mon Sep 17 00:00:00 2001 From: Wanjohi Date: Sat, 20 Sep 2025 07:01:30 +0300 Subject: [PATCH] feat: Use drizzle studio to view changes in realtime --- cloud/infra/database.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cloud/infra/database.ts b/cloud/infra/database.ts index 536dec37..462853bd 100644 --- a/cloud/infra/database.ts +++ b/cloud/infra/database.ts @@ -43,3 +43,12 @@ export const database = new sst.Linkable("Database", { password: dbRole.password, }, }); + +new sst.x.DevCommand("Studio", { + link: [database], + dev: { + command: "bun db studio", + directory: "cloud/packages/core", + autostart: true, + }, +});