fix: align auth env var naming with NEXT_PUBLIC_SITE_URL

This commit is contained in:
2026-04-26 19:35:45 +08:00
parent 067df2ba92
commit 2cc2834e0f
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ import { adminClient, emailOTPClient, lastLoginMethodClient } from 'better-auth/
import { passkeyClient } from '@better-auth/passkey/client'
export const authClient = createAuthClient({
baseURL: process.env.NEXT_PUBLIC_BASE_URL || "https://localhost:3000",
baseURL: process.env.NEXT_PUBLIC_SITE_URL || "https://localhost:3000",
plugins: [
emailOTPClient(),
passkeyClient(),
+1 -1
View File
@@ -49,7 +49,7 @@ export const auth = betterAuth({
clientSecret: process.env.DISCORD_CLIENT_SECRET || "",
},
},
trustedOrigins: [process.env.NEXT_PUBLIC_BASE_URL || "https://localhost:3000"],
trustedOrigins: [process.env.NEXT_PUBLIC_SITE_URL || "https://localhost:3000"],
rateLimit: {
enabled: true,
window: 60,