Skip to content

Commit f8eada1

Browse files
committed
add connection so page doesn't render at build
1 parent fdc71a4 commit f8eada1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • examples/composable-dashboard/app/users

examples/composable-dashboard/app/users/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ import Link from "next/link";
22
import { Button, Card, CardContent, CardHeader, CardTitle } from "@opensaas/ui/primitives";
33
import { ListTable } from "@opensaas/ui/standalone";
44
import { getContext } from "../../lib/context";
5+
import { connection } from "next/server";
56

67
export default async function UsersPage() {
8+
await connection();
79
const context = await getContext();
810

911
const users = await context.db.user.findMany({

0 commit comments

Comments
 (0)