mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-18 18:05:18 +00:00
feat(auth): add logger configuration to disable logging in production environment
This commit is contained in:
@@ -29,6 +29,9 @@ const { handler, api } = betterAuth({
|
|||||||
clientSecret: process.env.GOOGLE_CLIENT_SECRET as string,
|
clientSecret: process.env.GOOGLE_CLIENT_SECRET as string,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
logger: {
|
||||||
|
disabled: process.env.NODE_ENV === "production",
|
||||||
|
},
|
||||||
...(!IS_CLOUD && {
|
...(!IS_CLOUD && {
|
||||||
async trustedOrigins() {
|
async trustedOrigins() {
|
||||||
const admin = await db.query.member.findFirst({
|
const admin = await db.query.member.findFirst({
|
||||||
|
|||||||
Reference in New Issue
Block a user