You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
373 B
TypeScript
19 lines
373 B
TypeScript
|
9 months ago
|
import { Analytics } from "@vercel/analytics/react";
|
||
|
|
import { Home } from "./components/home";
|
||
|
|
import { getServerSideConfig } from "./config/server";
|
||
|
|
|
||
|
|
const serverConfig = getServerSideConfig();
|
||
|
|
|
||
|
|
export default async function App() {
|
||
|
|
return (
|
||
|
|
<>
|
||
|
|
<Home />
|
||
|
|
{serverConfig?.isVercel && (
|
||
|
|
<>
|
||
|
|
<Analytics />
|
||
|
|
</>
|
||
|
|
)}
|
||
|
|
</>
|
||
|
|
);
|
||
|
|
}
|