fix: 移除 dotenv/config 覆盖 build-arg 值,统一 mariadb:// 协议
This commit is contained in:
+1
-1
@@ -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
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user