From 5f37a4c306ea590493f0034678580323932aa62b Mon Sep 17 00:00:00 2001 From: "Andrew.Liang" Date: Thu, 28 Nov 2024 17:20:28 +0900 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E4=BD=BF=E7=94=A8=20supa?= =?UTF-8?q?base=20=E6=95=B0=E6=8D=AE=E5=BA=93=E6=97=A0=E6=B3=95=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96=E5=AE=8C=E6=88=90=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 3 ++- prisma/schema.prisma | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index 50eb5cb1..fed889c1 100644 --- a/.env.example +++ b/.env.example @@ -1,6 +1,7 @@ # 数据库 url DATABASE_URL="postgres://postgres:postgres@localhost:5432/postgres" +DIRECT_URL="postgres://postgres:postgres@localhost:5432/postgres" # AUTH_SECRET npx auth secret AUTH_SECRET=your-secret-key # 禁用 Vercel node.js 帮助程序 -NODEJS_HELPERS=0 \ No newline at end of file +NODEJS_HELPERS=0 diff --git a/prisma/schema.prisma b/prisma/schema.prisma index d0d06aea..83a0da8a 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -1,6 +1,7 @@ datasource db { - provider = "postgresql" - url = env("DATABASE_URL") + provider = "postgresql" + url = env("DATABASE_URL") + directUrl = env("DIRECT_URL") } generator client {