Skip to content
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

.env中应该配置 DATABASE_URL 还是 SUPABASE_URL ? #4

Open
endintro opened this issue Jul 25, 2023 · 2 comments
Open

.env中应该配置 DATABASE_URL 还是 SUPABASE_URL ? #4

endintro opened this issue Jul 25, 2023 · 2 comments

Comments

@endintro
Copy link

1.执行npx prism migrate dev没成功

2.如果配SUPABASE_URL,以下报错:
error: Environment variable not found: DATABASE_URL.
--> schema.prisma:3
|
2 | provider = "postgresql"
3 | url = env("DATABASE_URL")

3.如果配DATABASE_URL ,以下报错:
error: Error validating datasource db: the URL must start with the protocol postgresql:// or postgres://.
--> schema.prisma:3
|
2 | provider = "postgresql"
3 | url = env("DATABASE_URL")

望解答,谢谢

@khenzo
Copy link

khenzo commented Oct 4, 2023

+1

@panyy
Copy link

panyy commented Nov 22, 2023

应该是DATABASE_URL 它的值你可以去supabase上去拷贝,是以postgresql://postgres开头的字符串。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants