Skip to content

A quick Next.js v15 demo to showcase a local Docker Postgres setup

Notifications You must be signed in to change notification settings

mmikhan/nextjs-local-docker-postgres-setup

Repository files navigation

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

About

A quick Next.js v15 demo to showcase a local Docker Postgres setup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published