mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
feat: add auth env
This commit is contained in:
parent
ca0f12774b
commit
b7085f3d41
4
auth.ts
4
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: "/",
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user