Skip to content

Commit

Permalink
feat(config/schema): add hostReplica to config secrets schema
Browse files Browse the repository at this point in the history
Signed-off-by: Braden Mars <[email protected]>
  • Loading branch information
BradenM committed Oct 11, 2024
1 parent a7783d9 commit 9af6475
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/config/src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ const postgresSchema = z.object({
password: z.string(),
user: z.string(),
port: z.coerce.string(),
hostReplica: z.string().optional(),
})

const redisSchema = z.object({
Expand Down Expand Up @@ -203,6 +204,7 @@ const apiAppSecretsSchema = z
password: true,
port: true,
user: true,
hostReplica: true,
})
.default({ dbname: 'crisiscleanup_local', port: '5432' }),
redis: redisSchema.default({ host: '172.17.0.1' }),
Expand Down

0 comments on commit 9af6475

Please sign in to comment.