ChatGPT-Next-Web/app/page.tsx
2025-01-15 16:52:54 +08:00

23 lines
484 B
TypeScript

import { Analytics } from "@vercel/analytics/react";
import { Home } from "./components/home";
import { getServerSideConfig } from "./config/server";
import { initializeMcpSystem } from "./mcp/actions";
const serverConfig = getServerSideConfig();
export default async function App() {
// 初始化 MCP 系统
await initializeMcpSystem();
return (
<>
<Home />
{serverConfig?.isVercel && (
<>
<Analytics />
</>
)}
</>
);
}