Merge branch 'main' into cloudflare

This commit is contained in:
hamster1963 2024-11-27 21:25:18 +08:00
commit cb514e13c5
2 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ export default function ServerDetailClient({
} }
}; };
const { data: allFallbackData } = useSWRImmutable<ServerApi>( const { data: allFallbackData, isLoading } = useSWRImmutable<ServerApi>(
"/api/server", "/api/server",
nezhaFetcher, nezhaFetcher,
); );
@ -51,7 +51,7 @@ export default function ServerDetailClient({
(item) => item.id === server_id, (item) => item.id === server_id,
); );
if (!fallbackData) { if (!fallbackData && !isLoading) {
notFound(); notFound();
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "nezha-dash", "name": "nezha-dash",
"version": "1.5.3", "version": "1.5.3-fix",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "next dev -p 3040", "dev": "next dev -p 3040",