Skip to content

Commit

Permalink
linearlite-read-only sst config
Browse files Browse the repository at this point in the history
  • Loading branch information
samwillis committed Dec 9, 2024
1 parent b9736dc commit 5962c16
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/linearlite-read-only/sst.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { execSync } from 'child_process'
export default $config({
app(input) {
return {
name: `linearlite`,
name: `linearlite-read-only`,
removal: input?.stage === `production` ? `retain` : `remove`,
home: `aws`,
providers: {
Expand All @@ -25,12 +25,12 @@ export default $config({
branchId: project.defaultBranchId,
}

const db = new neon.Database(`linearlite`, {
const db = new neon.Database(`linearlite-read-only`, {
...base,
name:
$app.stage === `Production`
? `linearlite-production`
: `linearlite-${$app.stage}`,
? `linearlite-read-only-production`
: `linearlite-read-only-${$app.stage}`,
ownerName: `neondb_owner`,
})

Expand All @@ -51,7 +51,7 @@ export default $config({
website: website.url,
}
} catch (e) {
console.error(`Failed to deploy linearlite stack`, e)
console.error(`Failed to deploy linearlite-read-only stack`, e)
}
},
})
Expand Down

0 comments on commit 5962c16

Please sign in to comment.