mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-28 10:26:33 +02:00
Initial commit
This commit is contained in:
commit
55332d1ddb
168 changed files with 18456 additions and 0 deletions
49
apps/web/app/layout.tsx
Normal file
49
apps/web/app/layout.tsx
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
import "./globals.css";
|
||||
import type { Metadata } from "next";
|
||||
import { Inter as FontSans } from "next/font/google";
|
||||
import { DashboardLayout } from "@/components/layouts/dashboard";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { ThemeProvider } from "@/components/theme/theme-provider";
|
||||
import { OpenAPI } from "@/lib/api/client";
|
||||
import { TailwindIndicator } from "@/components/tailwind-indicator";
|
||||
|
||||
export const fontSans = FontSans({
|
||||
subsets: ["latin"],
|
||||
variable: "--font-sans",
|
||||
});
|
||||
|
||||
if (process.env.NODE_ENV === "production") {
|
||||
OpenAPI.BASE = "https://next-fast-turbo.vercel.app";
|
||||
}
|
||||
|
||||
console.log("Using OpenAPI.base", OpenAPI.BASE);
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Next-Fast-Turbo",
|
||||
description: "A Next.js, FastAPI and Turbo project scaffol",
|
||||
icons: {
|
||||
icon: ["/favicon.png"],
|
||||
},
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}): JSX.Element {
|
||||
return (
|
||||
<html lang="en" suppressHydrationWarning>
|
||||
<body className={cn(fontSans.variable, "bg-background font-sans")}>
|
||||
<ThemeProvider
|
||||
attribute="class"
|
||||
defaultTheme="system"
|
||||
enableSystem
|
||||
disableTransitionOnChange
|
||||
>
|
||||
<DashboardLayout>{children}</DashboardLayout>
|
||||
<TailwindIndicator />
|
||||
</ThemeProvider>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue