feat(auth): add logger configuration to disable logging in production environment

This commit is contained in:
Mauricio Siu
2025-08-03 18:04:09 -06:00
parent 5ff5da9ff9
commit ba5505cf81

View File

@@ -29,6 +29,9 @@ const { handler, api } = betterAuth({
clientSecret: process.env.GOOGLE_CLIENT_SECRET as string,
},
},
logger: {
disabled: process.env.NODE_ENV === "production",
},
...(!IS_CLOUD && {
async trustedOrigins() {
const admin = await db.query.member.findFirst({