You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(db-vercel-postgres): migrate from deprecated @vercel/postgres to @neondatabase/serverless
- `@vercel/postgres` has been deprecated. All Vercel Postgres stores have been migrated to Neon's native integration. The package is no
longer maintained and its `VercelPool` (which extends `@neondatabase/serverless`'s `Pool`, not `pg`'s `Pool`) is incompatible with
`drizzle-orm@0.45.2`'s stricter `NodePgClient` type.
* By default, we connect to a local database using the `pg` module instead of `@vercel/postgres`.
49
-
* This is because `@vercel/postgres` doesn't work with local databases.
50
-
* If you still want to use `@vercel/postgres` even locally you can pass `true` here
51
-
* and you'd to spin up the database with a special Neon's Docker Compose setup - https://vercel.com/docs/storage/vercel-postgres/local-development#option-2:-local-postgres-instance-with-docker
47
+
* By default, we connect to a local database using the `pg` module instead of `@neondatabase/serverless`.
48
+
* If you still want to use `@neondatabase/serverless` even locally you can pass `true` here.
52
49
*/
53
50
forceUseVercelPostgres?: boolean
54
51
/** Generated schema from payload generate:db-schema file path */
@@ -58,10 +55,10 @@ export type Args = {
58
55
logger?: DrizzleConfig['logger']
59
56
migrationDir?: string
60
57
/**
61
-
* Optional pool configuration for Vercel Postgres
62
-
* If not provided, vercel/postgres will attempt to use the Vercel environment variables
58
+
* Optional pool configuration
59
+
* If not provided, will attempt to use the Vercel/Neon environment variables
63
60
*/
64
-
pool?: VercelPostgresPoolConfig
61
+
pool?: PoolConfig
65
62
prodMigrations?: {
66
63
down: (args: MigrateDownArgs)=>Promise<void>
67
64
name: string
@@ -96,12 +93,12 @@ type ResolveSchemaType<T> = 'schema' extends keyof T
0 commit comments