Skip to content

Commit

Permalink
Use stage for database name in examples (#2071)
Browse files Browse the repository at this point in the history
This allows easier identifications of the database for an app in the
different stages. We're already doing this for Linearlite.
  • Loading branch information
balegas authored Dec 3, 2024
1 parent 0d20b97 commit b918d92
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 b918d92

Please sign in to comment.