Skip to content

Commit

Permalink
fix: allow default db address (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
tea-artist committed Mar 17, 2024
1 parent 5b0e8c0 commit b40d565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/nestjs-backend/src/configs/base.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const baseConfig = registerAs('base', () => ({
assetPrefix: process.env.ASSET_PREFIX ?? process.env.PUBLIC_ORIGIN!,
storagePrefix: process.env.STORAGE_PREFIX ?? process.env.PUBLIC_ORIGIN!,
secretKey: process.env.SECRET_KEY ?? 'defaultSecretKey',
publicDatabaseAddress: process.env.PUBLIC_DATABASE_ADDRESS,
publicDatabaseAddress: process.env.PUBLIC_DATABASE_ADDRESS ?? process.env.PRISMA_DATABASE_URL,
defaultMaxBaseDBConnections: Number(process.env.DEFAULT_MAX_BASE_DB_CONNECTIONS ?? 3),
templateSpaceId: process.env.TEMPLATE_SPACE_ID,
}));
Expand Down

0 comments on commit b40d565

Please sign in to comment.