mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-09-27 21:56:38 +08:00
26 lines
494 B
TypeScript
26 lines
494 B
TypeScript
import { Analytics } from "@vercel/analytics/react";
|
|
import { getServerSideConfig } from "./config/server";
|
|
import dynamic from "next/dynamic";
|
|
|
|
const Home = dynamic(
|
|
() => import("./components/home").then((mod) => ({ default: mod.Home })),
|
|
{
|
|
ssr: false,
|
|
},
|
|
);
|
|
|
|
const serverConfig = getServerSideConfig();
|
|
|
|
export default async function App() {
|
|
return (
|
|
<>
|
|
<Home />
|
|
{serverConfig?.isVercel && (
|
|
<>
|
|
<Analytics />
|
|
</>
|
|
)}
|
|
</>
|
|
);
|
|
}
|