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

DB_URL undefined during build #4

Open
ChuckJonas opened this issue Nov 12, 2021 · 1 comment
Open

DB_URL undefined during build #4

ChuckJonas opened this issue Nov 12, 2021 · 1 comment

Comments

@ChuckJonas
Copy link

I tried this same setup on my app but it seemed like heroku hadn't created the ENV vars or something yet.

remote: error: Error validating datasource `postgresql`: You must provide a nonempty URL. The environment variable `DATABASE_URL` resolved to an empty string.
remote:   -->  schema.prisma:5
remote:    | 
remote:  4 | datasource postgresql {
remote:  5 |   url      = env("DATABASE_URL")

Any ideas?

@bladey
Copy link
Contributor

bladey commented Nov 17, 2021

@ChuckJonas did you add the Postgresql addon to Heroku as per the example or did you use the one-click deployment option?

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

2 participants