fix: parse TRUSTED_ORIGINS environment variable for Better Auth
This commit is contained in:
@@ -21,6 +21,8 @@ export const auth = betterAuth({
|
||||
process.env.BETTER_AUTH_URL || "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()) : []),
|
||||
],
|
||||
session: {
|
||||
cookieCache: {
|
||||
|
||||
Reference in New Issue
Block a user