draw-a-ui icon indicating copy to clipboard operation
draw-a-ui copied to clipboard

VercelPostgresError: VercelPostgresError - 'missing_connection_string'

Open kornpow opened this issue 1 year ago • 2 comments

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)

kornpow avatar Nov 22 '23 20:11 kornpow

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.

Damilare1 avatar Nov 22 '23 23:11 Damilare1

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

kornpow avatar Nov 24 '23 16:11 kornpow