import hydrate from "preact-iso/hydrate"; import { LocationProvider, Router } from "preact-iso/router"; import lazy, { ErrorBoundary } from "preact-iso/lazy"; import Home from "./pages/home/index.js"; import NotFound from "./pages/_404.js"; import Header from "./header.js"; const About = lazy(() => import("./pages/about/index.js")); export function App() { return (
); } hydrate(); export async function prerender(data) { const { default: prerender } = await import("preact-iso/prerender"); return await prerender(); }