feat: 添加生产环境配置,重构 API 请求,更新部署脚本和配置
This commit is contained in:
@@ -9,7 +9,8 @@ export const auth = betterAuth({
|
||||
emailAndPassword: {
|
||||
enabled: true,
|
||||
},
|
||||
trustedOrigins: [process.env.BETTER_AUTH_URL || 'http://localhost:3000'],
|
||||
basePath: '/api/auth',
|
||||
trustedOrigins: [process.env.BETTER_AUTH_URL || 'http://localhost:3001'],
|
||||
secret: process.env.BETTER_AUTH_SECRET,
|
||||
session: {
|
||||
expiresIn: 60 * 60 * 24 * 7, // 7 days
|
||||
|
||||
Reference in New Issue
Block a user