Skip to content

Commit fda367b

Browse files
committed
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.
1 parent ea1238b commit fda367b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/server/src/lib/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const { handler, api } = betterAuth({
7676
},
7777
},
7878
logger: {
79-
disabled: false,
79+
disabled: process.env.NODE_ENV === "production",
8080
},
8181
async trustedOrigins() {
8282
try {

0 commit comments

Comments
 (0)