mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
33 lines
847 B
TypeScript
33 lines
847 B
TypeScript
import type { Metadata } from "next";
|
|
import { StackProvider, StackTheme } from "@stackframe/stack";
|
|
import { stackServerApp } from "../stack";
|
|
import { Inter } from "next/font/google";
|
|
import "./globals.css";
|
|
import EnableFetchDelay from "./enable-fetch-delay";
|
|
|
|
const inter = Inter({ subsets: ["latin"] });
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Stack Auth Partial Prerendering Demo",
|
|
description: "A demo of Stack's partial prerendering capabilities.",
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode,
|
|
}>) {
|
|
return (
|
|
<html lang="en">
|
|
<body className={inter.className}>
|
|
<StackProvider app={stackServerApp}>
|
|
<StackTheme>
|
|
<EnableFetchDelay />
|
|
{children}
|
|
</StackTheme>
|
|
</StackProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|