🚀 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"; import AppShell from "@/components/AppShell";
export const runtime = "edge";
export const metadata: Metadata = { export const metadata: Metadata = {
title: { title: {
default: SITE_NAME, default: SITE_NAME,
template: `${SITE_NAME} | %s` template: `${SITE_NAME} | %s`
}, },
description: SITE_DESCRIPTION, description: SITE_DESCRIPTION
}; };
export default function RootLayout({ children }: Readonly<{ export default function RootLayout({ children }: Readonly<{

View File

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