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

Invalid environment variables: DATABASE_URL: Required OPENAI_API_KEY: Required #2

Open
jeffery-zhang opened this issue Feb 20, 2023 · 1 comment

Comments

@jeffery-zhang
Copy link

I have entered my API key and the database_url has a default value, but when I run dev, it still throws this error.
Invalid environment variables:
DATABASE_URL: Required
OPENAI_API_KEY: Required

@cfortuner
Copy link
Contributor

cfortuner commented Feb 20, 2023

You need to add this file

.env

DATABASE_URL=file:./db.sqlite
OPENAI_API_KEY=<YOUR KEY>

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