fix: add ALLOWED_ORIGINS to Better Auth trustedOrigins

This commit is contained in:
2026-01-28 21:03:37 +00:00
parent 7c53056e6e
commit 2cd64918a6

View File

@@ -27,6 +27,7 @@ export const auth = betterAuth({
}, },
trustedOrigins: [ trustedOrigins: [
process.env.APP_URL || 'http://localhost:3000', process.env.APP_URL || 'http://localhost:3000',
...(process.env.ALLOWED_ORIGINS?.split(',') || []),
], ],
}); });