signOut 改用 redirect:false 后由浏览器同源跳转 /login,并明确生产 AUTH_URL 不得写成监听地址 0.0.0.0。 Co-Authored-By: Claude <noreply@anthropic.com>
13 lines
547 B
Bash
13 lines
547 B
Bash
# 腾讯云自建 MySQL(Prisma 直连)
|
||
DATABASE_URL="mysql://crm_dev:PASSWORD@124.223.187.95:3306/crm_dev"
|
||
|
||
# Auth.js 会话加密密钥:openssl rand -base64 32
|
||
AUTH_SECRET="please-run-openssl-rand-base64-32"
|
||
|
||
# 开发环境不需要 AUTH_URL(trustHost:true 自动识别 host/端口)。
|
||
# 生产必须设为浏览器可访问的地址(真实域名或公网 IP),
|
||
# 切勿写成监听地址 0.0.0.0,否则登录/退出会跳到 http://0.0.0.0:端口
|
||
# AUTH_URL="https://crm.yourdomain.com"
|
||
# AUTH_URL="http://124.223.187.95:3100"
|
||
|