mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
- A Next.js starter app using [Prisma Postgres](https://www.prisma.io/postgres) and Prisma ORM This PR adds a new example demonstrating how to integrate Prisma ORM with a Next.js application. The example includes: - Setup instructions for Prisma Postgres - Example models and queries - Basic CRUD operations using Prisma --------- Co-authored-by: Nikolas <[email protected]> Co-authored-by: Alex Martin <[email protected]> Co-authored-by: JJ Kasper <[email protected]>
26 lines
556 B
TypeScript
26 lines
556 B
TypeScript
// app/layout.tsx
|
|
import "./globals.css";
|
|
import Header from "./Header";
|
|
|
|
export const metadata = {
|
|
title: "Superblog",
|
|
description: "A blog app using Next.js and Prisma",
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<html lang="en" className="h-full">
|
|
<body className="h-full overflow-hidden">
|
|
<div className="min-h-screen flex flex-col">
|
|
<Header />
|
|
<main className="flex-1 overflow-auto">{children}</main>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|