Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust drizzle init for changes in drizzle 0.35.0 https://github.com/drizzle-team/drizzle-orm/releases/tag/0.35.0 The pool/connection should now be passed as the `client` arg when initializing drizzle. ```ts this.drizzle = drizzle({ client: this.poolOptions ? new VercelPool(this.poolOptions) : sql, logger, schema: this.schema, }) ``` This was causing an issue where running `payload migrate` on Vercel was causing drizzle to attempt to `127.0.0.1:5432` instead of the specified environment variable in the adapter 🤔
- Loading branch information