Stuck loading

Hey, I'm having this issue where the website is stuck loading.
using next.js
initialized the schema like this:
export default drizzle(new Client(process.env.DATABASE_URL!), { schema })

and just queried it from server side:
import { auth, useUser } from "@clerk/nextjs";
import db, { schema } from "@/db/index";
import { arrayContains, eq } from "drizzle-orm";

export default async function Page() {
    const { userId } = auth();
    const getTeams = await db
        .select()
        .from(schema.team)
        .where(arrayContains(schema.team.members, [userId!]))
        .execute()
...
Was this page helpful?