diff --git a/auth.ts b/auth.ts index dc90f57..71604fb 100644 --- a/auth.ts +++ b/auth.ts @@ -4,8 +4,8 @@ import Credentials from "next-auth/providers/credentials"; import getEnv from "./lib/env-entry"; export const { handlers, signIn, signOut, auth } = NextAuth({ - secret: "this_is_nezha_dash_web_secret", - trustHost: true, + secret: process.env.AUTH_SECRET ?? "this_is_nezha_dash_web_secret", + trustHost: process.env.AUTH_TRUST_HOST as boolean | undefined ?? true, pages: { signIn: "/", },