Vercel error when using both PlanetScale and Postgres in the same Next app
I'm using two separate databases for my app. The PlanetScale one is the "main" database, and the Postgres is a self-hosted database. I have separate Drizzle instances and schemas for both.
PlanetScale:
Postgres:
Other than needing to switch pages that use the pg connection over to nodejs instead of edge, this works well locally.
I've just tried to deploy to Vercel and I'm getting this error:
I'm thinking I should just load up the pg HTTP proxy on my server and use that but I'd rather not add another layer of complexity here.
PlanetScale:
Postgres:
Other than needing to switch pages that use the pg connection over to nodejs instead of edge, this works well locally.
I've just tried to deploy to Vercel and I'm getting this error:
I'm thinking I should just load up the pg HTTP proxy on my server and use that but I'd rather not add another layer of complexity here.