refactor(auth): remove BETTER_AUTH_URL configuration and set a default baseURL fallback

This commit is contained in:
yiling
2026-06-14 15:01:44 +08:00
parent 1790149986
commit 8c55897d80
4 changed files with 3 additions and 7 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ export const auth = betterAuth({
},
secret: process.env.BETTER_AUTH_SECRET,
// eslint-disable-next-line @typescript-eslint/naming-convention
baseURL: process.env.BETTER_AUTH_URL,
baseURL: process.env.BETTER_AUTH_URL || 'http://localhost:3000',
basePath: '/api/auth',
trustedOrigins: ['http://localhost:3000', 'http://127.0.0.1:3000'],
advanced: {