mirror of
https://github.com/xCyanGrizzly/DragonsStash.git
synced 2026-05-11 06:11:15 +00:00
- Replace next/font/google Geist imports with geist npm package to eliminate Google Fonts CDN network dependency during Docker image builds (was causing intermittent build failures → redeployment errors) - Use ./node_modules/.bin/prisma directly in docker-entrypoint.sh instead of npx for both migrate deploy and db seed commands Co-authored-by: xCyanGrizzly <53275238+xCyanGrizzly@users.noreply.github.com>
36 lines
1.2 KiB
TypeScript
36 lines
1.2 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { GeistSans } from "geist/font/sans";
|
|
import { GeistMono } from "geist/font/mono";
|
|
import { SessionProvider } from "@/components/providers/session-provider";
|
|
import { ThemeProvider } from "@/components/providers/theme-provider";
|
|
import { Toaster } from "@/components/ui/sonner";
|
|
import { TooltipProvider } from "@/components/ui/tooltip";
|
|
import { APP_NAME } from "@/lib/constants";
|
|
import "./globals.css";
|
|
|
|
export const metadata: Metadata = {
|
|
title: {
|
|
default: APP_NAME,
|
|
template: `%s | ${APP_NAME}`,
|
|
},
|
|
description:
|
|
"Self-hosted inventory management for 3D printing filament, resin, and miniature paints",
|
|
};
|
|
|
|
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
|
return (
|
|
<html lang="en" className="dark" suppressHydrationWarning>
|
|
<body className={`${GeistSans.variable} ${GeistMono.variable} font-sans antialiased`}>
|
|
<SessionProvider>
|
|
<ThemeProvider>
|
|
<TooltipProvider delayDuration={0}>
|
|
{children}
|
|
<Toaster richColors position="bottom-right" />
|
|
</TooltipProvider>
|
|
</ThemeProvider>
|
|
</SessionProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|