From e758ae137bcf9ac13de8fd400bd7226fbdb610c6 Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Wed, 27 Nov 2024 21:24:48 +0800 Subject: [PATCH 1/2] fixL refresh 404 error --- app/(main)/ClientComponents/ServerDetailClient.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/(main)/ClientComponents/ServerDetailClient.tsx b/app/(main)/ClientComponents/ServerDetailClient.tsx index 7f4a10b..b7667ad 100644 --- a/app/(main)/ClientComponents/ServerDetailClient.tsx +++ b/app/(main)/ClientComponents/ServerDetailClient.tsx @@ -43,7 +43,7 @@ export default function ServerDetailClient({ } }; - const { data: allFallbackData } = useSWRImmutable( + const { data: allFallbackData, isLoading } = useSWRImmutable( "/api/server", nezhaFetcher, ); @@ -51,7 +51,7 @@ export default function ServerDetailClient({ (item) => item.id === server_id, ); - if (!fallbackData) { + if (!fallbackData && !isLoading) { notFound(); } From 711ed79dc539e9d6324641f2675883b4f8bdd5f9 Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Wed, 27 Nov 2024 21:25:04 +0800 Subject: [PATCH 2/2] fix: v1.5.3-fix --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d8950eb..14d11ff 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nezha-dash", - "version": "1.5.3", + "version": "1.5.3-fix", "private": true, "scripts": { "dev": "next dev -p 3040",