xexr.
xexr.
Explore posts from servers
DTDrizzle Team
Created by xexr. on 5/16/2023 in #help
Drizzle with Next 13.4.2 & Vercel Postgres Timeout
Hi all. I'm trying out NextJS server actions and Drizzle for the first time. I have it hooked up to Vercel Postgres as the docs describe and all seems to work. However, after 5 or 6 reads or writes, it seems like the db connection stalls and the serverless / edge function eventually timesout until restarted. I've enabled drizzle logs and I see the query being fired but then nothing, it stops at that point. I can't work out what I'm doing wrong and appreciate any suggestions in the right direction. I wonder if it's some sort of pool issue, but then I'm using the direct vercel/postgres library and suggested drizzle config. Repo for example here: https://github.com/Xexr/next_test Deployment so you can see it fail here: https://next-drizzle-test.vercel.app/ (just refresh the page and eventually you'll see it timeout)
8 replies