Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 1.21 KB

File metadata and controls

30 lines (22 loc) · 1.21 KB

Next.js Local Docker Postgres setup

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.

Resource