How do you guys setup drizzle with next 15?

Apparently it doesnt work anymore, when i put

import { drizzle } from "drizzle-orm/postgres-js";
import * as schema from "./schema";

export const db = drizzle(process.env.DATABASE_URL!, {
  schema: schema,
});

error "net" not found

when i put use server on top, it says error must be async function. What the hell do i do next?
Was this page helpful?