Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix: Change from connect to client

Richie McIlroy5532a94238c9
diff --git a/packages/database/index.ts b/packages/database/index.ts
index f921a5cd0..43088b561 100644
--- a/packages/database/index.ts
+++ b/packages/database/index.ts
@@ -1,7 +1,7 @@
import { drizzle } from "drizzle-orm/planetscale-serverless";
-import { connect } from "@planetscale/database";
+import { Client } from "@planetscale/database";
-export const connection = connect({
+export const connection = new Client({
url: `mysql://${process.env.DB_PLANETSCALE_USERNAME}:${process.env.DB_PLANETSCALE_PASSWORD}@${process.env.DB_PLANETSCALE_HOST}/${process.env.DB_PLANETSCALE_DATABASE}?ssl={"rejectUnauthorized":false}`,
});