I'm finishing development of a feature branch and trying to deploy the preview. This is something I have done many times before, without issues.
Suddently, my preview deployments are now unable to connect to the database, causing all requests to fail with the following error:
Error: All attempts to open a WebSocket to connect to the database failed. Please refer to https://github.com/neondatabase/serverless/blob/main/CONFIG.md#websocketconstructor-typeof-websocket--undefined. Details: fetch failed
I have tried to create a mock pull request that is identical to my main branch (which is currently deployed and working as expected), but this new deployment has the same error, causing me to suspect that some bug has been introduced by Vercel.
You can see the pull request here: https://github.com/FrederikNorlyk/svelte-budget-planner/pull/155.
I'm using Vercel's PostgreSQL database.
TLDR;
Without changing any code or configurations, new deployments have started getting errors.