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
* 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.
48
+
* 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
49
52
*/
50
53
forceUseVercelPostgres?: boolean
51
54
/** Generated schema from payload generate:db-schema file path */
@@ -55,10 +58,10 @@ export type Args = {
55
58
logger?: DrizzleConfig['logger']
56
59
migrationDir?: string
57
60
/**
58
-
* Optional pool configuration
59
-
* If not provided, will attempt to use the Vercel/Neon environment variables
61
+
* Optional pool configuration for Vercel Postgres
62
+
* If not provided, vercel/postgres will attempt to use the Vercel environment variables
60
63
*/
61
-
pool?: PoolConfig
64
+
pool?: VercelPostgresPoolConfig
62
65
prodMigrations?: {
63
66
down: (args: MigrateDownArgs)=>Promise<void>
64
67
name: string
@@ -93,12 +96,12 @@ type ResolveSchemaType<T> = 'schema' extends keyof T
0 commit comments