fix: cloudflare edge

This commit is contained in:
hamster1963 2024-12-03 16:27:32 +08:00
parent da93813a5f
commit 4fc2d132c8
2 changed files with 4 additions and 0 deletions

View File

@ -5,6 +5,8 @@ import { Suspense } from "react";
import ServerGlobal from "./ClientComponents/Global";
import GlobalLoading from "./ClientComponents/GlobalLoading";
export const runtime = "edge";
export default async function Home({
searchParams,
}: {

View File

@ -4,6 +4,8 @@ import Link from "next/link";
import Footer from "./(main)/footer";
import Header from "./(main)/header";
export const runtime = "edge";
export default function NotFoundPage() {
const t = useTranslations("NotFoundPage");
return (