fix: add dhg.lol:51193 to trusted origins

This commit is contained in:
2026-03-31 04:44:04 -07:00
parent 62f10a232f
commit 39e7573e76
+3 -2
View File
@@ -18,11 +18,12 @@ export const auth = betterAuth({
secret: process.env.BETTER_AUTH_SECRET,
baseURL: process.env.BETTER_AUTH_URL || "http://localhost:3000",
trustedOrigins: [
process.env.BETTER_AUTH_URL || "http://localhost:3000",
"http://dhg.lol:51193",
"http://localhost:3000",
"http://127.0.0.1:3000",
"http://0.0.0.0:3000",
// Parse comma-separated TRUSTED_ORIGINS environment variable
...(process.env.TRUSTED_ORIGINS ? process.env.TRUSTED_ORIGINS.split(',').map(origin => origin.trim()) : []),
...(process.env.TRUSTED_ORIGINS ? process.env.TRUSTED_ORIGINS.split(',').map((origin) => origin.trim()) : []),
],
session: {
cookieCache: {