Files
nixos-config/servers/hetzner/modules/services/virtualcam-layout.patch
T

30 lines
1.2 KiB
Diff

--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -1,19 +1,14 @@
import type { Metadata } from "next";
-import { Pixelify_Sans } from "next/font/google";
import "./globals.css";
import { getCurrentUser } from "@/lib/auth";
import { getAppUrl } from "@/lib/env";
import { Providers } from "@/components/providers";
import { AuthProvider } from "@/contexts/auth-context";
import { MatrixEffects } from "@/components/matrix-effects";
import { SiteHeader } from "@/components/site-header";
import { SiteFooter } from "@/components/site-footer";
-
-const pixelify = Pixelify_Sans({
- subsets: ["latin"],
- weight: ["400", "500", "600", "700"],
- variable: "--font-pixelify",
- display: "swap",
-});
-
+// Built fully dynamic so the sandboxed Nix build needs no database and no
+// external font download; also correct for a DB-driven storefront.
+export const dynamic = "force-dynamic";
+
export const metadata: Metadata = {
@@ -50,2 +45,2 @@
- <html lang="en" className={`${pixelify.variable} h-full`} suppressHydrationWarning>
+ <html lang="en" className="h-full" suppressHydrationWarning>
<body className="min-h-full flex flex-col bg-background text-foreground">