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

VercelPostgresError: VercelPostgresError - 'missing_connection_string' #65

Open
kornpow opened this issue Nov 22, 2023 · 2 comments
Open

Comments

@kornpow
Copy link

kornpow commented Nov 22, 2023

Running into this issue after drawing something and after pressing the "make real" button.

⨯ node_modules/@vercel/postgres/dist/chunk-VGUHM5WG.js (158:10) @ createPool
⨯ VercelPostgresError: VercelPostgresError - 'missing_connection_string': You did not supply a 'connectionString' and no 'POSTGRES_URL' env var was found.
at uploadLink (./app/lib/uploadLink.tsx:22:60)

@Damilare1
Copy link

I was able to fix this by creating a project and database on vercel. Follow the instructions here and run the command to get the database working on your local instance.

@kornpow
Copy link
Author

kornpow commented Nov 24, 2023

I did this and it started to work:

docker pull postgres
docker run --name postgres-db -e POSTGRES_PASSWORD=make-real -p 5432:5432 -d postgres
export POSTGRES_URL=postgresql://postgres:makereal@localhost:5432/postgres
npm i
npm run dev

edit: it seems to just work regardless now... with or without postgres running

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