From 06f106f554dc770dd3bea7481f522ceddc732c13 Mon Sep 17 00:00:00 2001 From: JOYCEQL <1449239013@qq.com> Date: Thu, 31 Jul 2025 00:29:48 +0800 Subject: [PATCH] fix: cloudfare build deploy --- {src/app => public}/favicon.ico | Bin src/app/layout.tsx | 11 ++++++++--- src/app/manifest.ts | 2 ++ src/app/sitemap.ts | 2 ++ 4 files changed, 12 insertions(+), 3 deletions(-) rename {src/app => public}/favicon.ico (100%) diff --git a/src/app/favicon.ico b/public/favicon.ico similarity index 100% rename from src/app/favicon.ico rename to public/favicon.ico diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 6c0928d..231b434 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -9,6 +9,11 @@ type Props = { export const metadata: Metadata = { metadataBase: new URL("https://magicv.art"), + icons: { + icon: "/icon.png", + shortcut: "/icon.png", + apple: "/icon.png" + }, robots: { index: true, follow: true, @@ -17,9 +22,9 @@ export const metadata: Metadata = { follow: true, "max-video-preview": -1, "max-image-preview": "large", - "max-snippet": -1, - }, - }, + "max-snippet": -1 + } + } }; export default function RootLayout({ children }: Props) { diff --git a/src/app/manifest.ts b/src/app/manifest.ts index 905ed1d..ce023a2 100644 --- a/src/app/manifest.ts +++ b/src/app/manifest.ts @@ -1,5 +1,7 @@ import type { MetadataRoute } from "next"; +export const runtime = "edge"; + export default function manifest(): MetadataRoute.Manifest { return { name: "Magic Resume", diff --git a/src/app/sitemap.ts b/src/app/sitemap.ts index d3aa91a..a9c5a46 100644 --- a/src/app/sitemap.ts +++ b/src/app/sitemap.ts @@ -1,5 +1,7 @@ import { MetadataRoute } from "next"; +export const runtime = "edge"; + export default function sitemap(): MetadataRoute.Sitemap { const baseUrl = "https://magicv.art/";