Newer
Older
import BaseLayout from "@/components/BaseLayout";
import type { Metadata } from "next";
import { AppRouterCacheProvider } from "@mui/material-nextjs/v14-appRouter";
title: "Rodolf",
description: "Bonjour",
};
// See https://mui.com/material-ui/guides/nextjs/
export default function RootLayout({
children,
}: {
children: React.ReactNode;
const API_ENDPOINT = process.env.RODOLF_API_URL;
if (!API_ENDPOINT) {
throw new Error("No api endpoint configured");
}
<BaseLayout endpoint={API_ENDPOINT}>{children}</BaseLayout>