Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

DATABASE_URL: Required #17

Open
giulianok opened this issue Feb 15, 2023 · 4 comments
Open

DATABASE_URL: Required #17

giulianok opened this issue Feb 15, 2023 · 4 comments

Comments

@giulianok
Copy link
Contributor

Following the Examples instructions, I get the following error when running pnpm dev

https://github.com/cfortuner/promptable#examples

web:dev: ❌ Invalid environment variables:
web:dev:  DATABASE_URL: Required
web:dev:
web:dev: error - Failed to load next.config.mjs, see more info here https://nextjs.org/docs/messages/next-config-error
web:dev: Error: Invalid environment variables
web:dev:     at file:///Users/giulianomini/Projects/Testing/promptable/apps/web/src/env/server.mjs:16:9
web:dev:     at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
web:dev:     at async Promise.all (index 0)
web:dev:     at async ESMLoader.import (node:internal/modules/esm/loader:533:24)
web:dev:     at async file:///Users/giulianomini/Projects/Testing/promptable/apps/web/next.config.mjs:6:38
web:dev:  ELIFECYCLE  Command failed with exit code 1.
web:dev: ERROR: command finished with error: command (/Users/giulianomini/Projects/Testing/promptable/apps/web) pnpm run dev exited (1)
promptable:dev: CLI Building entry: src/index.ts
promptable:dev:  ELIFECYCLE  Command failed.
docs:dev:  ELIFECYCLE  Command failed.
gpt-react-query:dev:  ELIFECYCLE  Command failed.
promptable:dev:  ELIFECYCLE  Command failed.
command (/Users/giulianomini/Projects/Testing/promptable/apps/web) pnpm run dev exited (1)
@justinliang1020
Copy link
Collaborator

To fix this, copy the contents of .env.example into a new file, .env, in the same directory.

@cfortuner
Copy link
Owner

Sorry about this @giulianok . I'l leave this open until we simplify this

@giulianok
Copy link
Contributor Author

Sorry about this @giulianok . I'l leave this open until we simplify this

let me know if help is needed

@cfortuner
Copy link
Owner

@giulianok Yeah! want to join the discord? Plenty of ways to improve htis stuff :)

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

No branches or pull requests

3 participants