This is a quick Next.js site to test the Local Docker with Vercel Postgres support. The doc Vercel offers is no longer up to date and the connection never works. This is due to the @drizzle-orm
and @vercel/postgres
uses different version of @neondatabase/serverless
causes this. The only possible fix for now is to override the @neondatabase/serverless
through package.json
.
For npm
user:
"overrides": {
"@neondatabase/serverless": "0.10.4"
}
For pnpm
user:
"pnpm": {
"overrides": {
"@neondatabase/serverless": "^0.10.4"
}
}
package-lock.json
or pnpm-lock.yaml
needs to be remove and rebuild as well as the node_modules
.