feat/down-page #4

Merged
vivy-agent merged 3 commits from feat/down-page into main 2026-02-09 23:23:53 +07:00
13 changed files with 104 additions and 24 deletions
Showing only changes of commit 0664282572 - Show all commits

View File

@ -1,6 +1,18 @@
import StatusIndex from "@/features/status"; import StatusIndex from "@/features/status";
import { backendFetch } from "@/shared/helpers/backendFetch";
import { redirect } from "next/navigation";
const page = async () => {
// Check service status with API call
let isDown = false;
try {
const data = await backendFetch("status");
console.log(data);
} catch (_) {
isDown = true;
}
if (!isDown) redirect("/");
const page = () => {
return ( return (
<div> <div>
<StatusIndex /> <StatusIndex />