fix: 移除 dotenv/config 覆盖 build-arg 值,统一 mariadb:// 协议

This commit is contained in:
ZhuiGuangAI Dev
2026-10-02 23:34:45 +08:00
parent 3a69724a7d
commit 391c64532e
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
# WARNING: .env 已被加入 .gitignore,请勿提交真实密钥
# 数据库连接 (必填)
DATABASE_URL="mysql://user:password@host:3306/zhuiguang_ai?charset=utf8mb4"
DATABASE_URL="mariadb://user:password@host:3306/zhuiguang_ai?charset=utf8mb4"
# NextAuth 配置 (必填)
NEXTAUTH_URL="http://localhost:8301"
+2 -3
View File
@@ -1,6 +1,5 @@
// This file was generated by Prisma, and assumes you have installed the following:
// npm install --save-dev prisma dotenv
import "dotenv/config";
// 运行时由 Dockerfile build-arg 注入 DATABASE_URL
// 本地开发时手动 export DATABASE_URL 或用 .env 加载(next.config.mjs 处理)
import { defineConfig } from "prisma/config";
export default defineConfig({