Skip to content

Commit

Permalink
use stage in database name
Browse files Browse the repository at this point in the history
  • Loading branch information
balegas committed Nov 29, 2024
1 parent d0b15e3 commit ab24fd5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/nextjs-example/sst.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
})

Expand Down

0 comments on commit ab24fd5

Please sign in to comment.