import { BlurFade } from "@/components/magicui/blur-fade"; const SERVER_API_URL = process.env.SERVER_API_URL || "http://backend:8080"; export default async function HomePage() { let healthText = "无法连接到后端服务"; try { const res = await fetch(`${SERVER_API_URL}/api/health`, { cache: "no-store", }); if (res.ok) { healthText = await res.text(); } else { healthText = `后端异常: ${res.status}`; } } catch (err) { healthText = "后端连接失败"; } return (

EvanPage

全栈基础框架

后端状态

{healthText}

登录 注册
); }