fix: update logger configuration to disable in production environment

Change the logger's disabled property to be dependent on the NODE_ENV variable, ensuring logging is disabled in production for improved performance and security.
This commit is contained in:
Mauricio Siu
2026-04-17 14:01:46 -06:00
parent ea1238b1d1
commit fda367b2c5

View File

@@ -76,7 +76,7 @@ const { handler, api } = betterAuth({
},
},
logger: {
disabled: false,
disabled: process.env.NODE_ENV === "production",
},
async trustedOrigins() {
try {