andy__yo
andy__yo
DTDrizzle Team
Created by andy__yo on 11/23/2023 in #help
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')]
1 replies