🚀 Ready for cloudflare pages

This commit is contained in:
LittleSheep 2024-02-24 19:01:25 +08:00
parent 7d70841a2d
commit 4b05046a17
2 changed files with 4 additions and 2 deletions

View File

@ -15,12 +15,14 @@ import "./globals.css";
import AppShell from "@/components/AppShell";
export const runtime = "edge";
export const metadata: Metadata = {
title: {
default: SITE_NAME,
template: `${SITE_NAME} | %s`
},
description: SITE_DESCRIPTION,
description: SITE_DESCRIPTION
};
export default function RootLayout({ children }: Readonly<{

View File

@ -62,7 +62,7 @@ export function AppNavigation({ showClose, onClose }: {
<Divider />
<List>
{NAVIGATION_ITEMS.map((item, idx) => {
return item.divider ? <Divider /> : (
return item.divider ? <Divider key={idx} /> : (
<Link key={idx} href={item.link ?? "/"} passHref>
<ListItemButton>
<ListItemIcon>{item.icon}</ListItemIcon>