From ab24fd5013d021f14c490d5e2eb680b8407405b3 Mon Sep 17 00:00:00 2001 From: Valter Balegas Date: Fri, 29 Nov 2024 12:57:47 +0000 Subject: [PATCH] use stage in database name --- examples/nextjs-example/sst.config.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/nextjs-example/sst.config.ts b/examples/nextjs-example/sst.config.ts index 847ee0c39c..a77237e859 100644 --- a/examples/nextjs-example/sst.config.ts +++ b/examples/nextjs-example/sst.config.ts @@ -25,8 +25,12 @@ export default $config({ branchId: project.defaultBranchId, } - const db = new neon.Database(`nextjs-example`, { + const db = new neon.Database(`nextjs`, { ...base, + name: + $app.stage === `Production` + ? `nextjs-production` + : `nextjs-${$app.stage}`, ownerName: `neondb_owner`, })