Skip to content

Commit

Permalink
set RDS to not pause in production
Browse files Browse the repository at this point in the history
  • Loading branch information
SSTPIERRE2 committed Mar 19, 2024
1 parent e8c1ddd commit 9d77262
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions stacks/Database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ export function Database({ stack }: StackContext) {
defaultDatabaseName: 'main',
migrations: 'packages/core/migrations',
types: 'packages/core/src/sql.generated.ts',
scaling: {
autoPause: stack.stage !== 'prod',
},
});

return rds;
Expand Down

0 comments on commit 9d77262

Please sign in to comment.