How to work with Cloudflare D1 on nextjs with drizzle - (Database Error: [TypeError: Cannot read pr)

src/lib/index.ts import { drizzle } from "drizzle-orm/d1"; import * as schema from "./schema"; const customConfig = { schema, databaseName: "remind", tableName: "collection", }; export const db = drizzle(process.env.DB1 , customConfig); const collections = await db.select().from(Collection); Database Error: [TypeError: Cannot read properties of undefined (reading 'prepare')]
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server