Force static

This commit is contained in:
KMKoushik
2024-06-02 17:08:00 +10:00
parent e9aad3b1e6
commit ba0e1b2dcd

View File

@@ -1,11 +1,9 @@
import Link from "next/link"; import Link from "next/link";
import { redirect } from "next/navigation";
import { import {
BookOpenText, BookOpenText,
BookUser, BookUser,
CircleUser, CircleUser,
Code, Code,
ExternalLink,
Globe, Globe,
Home, Home,
LayoutDashboard, LayoutDashboard,
@@ -30,20 +28,13 @@ import {
} from "@unsend/ui/src/dropdown-menu"; } from "@unsend/ui/src/dropdown-menu";
import { Sheet, SheetContent, SheetTrigger } from "@unsend/ui/src/sheet"; import { Sheet, SheetContent, SheetTrigger } from "@unsend/ui/src/sheet";
import { getServerAuthSession } from "~/server/auth";
import { NavButton } from "./nav-button"; import { NavButton } from "./nav-button";
import { db } from "~/server/db";
import { SessionProvider } from "next-auth/react";
import { DashboardProvider } from "~/providers/dashboard-provider"; import { DashboardProvider } from "~/providers/dashboard-provider";
import { NextAuthProvider } from "~/providers/next-auth"; import { NextAuthProvider } from "~/providers/next-auth";
export const metadata = { export const dynamic = "force-static";
title: "Unsend",
description: "Open source sending infrastructure for developers",
icons: [{ rel: "icon", url: "/favicon.ico" }],
};
export default async function AuthenticatedDashboardLayout({ export default function AuthenticatedDashboardLayout({
children, children,
}: { }: {
children: React.ReactNode; children: React.ReactNode;