diff --git a/apps/api/src/lib/logger.ts b/apps/api/src/lib/logger.ts index 0b7c7e7..03fda00 100644 --- a/apps/api/src/lib/logger.ts +++ b/apps/api/src/lib/logger.ts @@ -7,7 +7,7 @@ const isProduction = process.env.NODE_ENV === 'production' * never use `console.log` in the backend. */ export const logger = pino({ - level: process.env.LOG_LEVEL ?? (isProduction ? 'info' : 'debug'), + level: process.env.LOG_LEVEL || (isProduction ? 'info' : 'debug'), ...(isProduction ? {} : { diff --git a/apps/api/src/lib/mailer.ts b/apps/api/src/lib/mailer.ts index 049ffec..b3fb2fb 100644 --- a/apps/api/src/lib/mailer.ts +++ b/apps/api/src/lib/mailer.ts @@ -11,7 +11,7 @@ export type Email = { } const apiKey = process.env.RESEND_API_KEY -const from = process.env.MAIL_FROM ?? 'Superlist ' +const from = process.env.MAIL_FROM || 'Superlist ' let client: Resend | null = null