Skip to content

fix:修复使用 supabase 数据库无法初始化完成的问题。 #173

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -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
NODEJS_HELPERS=0
5 changes: 3 additions & 2 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
provider = "postgresql"
url = env("DATABASE_URL")
directUrl = env("DIRECT_URL")
}

generator client {
Expand Down