brf/client/public/server.ts
2025-11-24 17:09:09 +01:00

23 lines
556 B
TypeScript

// import { h } from 'preact'
// import preactRender from 'preact-render-to-string'
// import preactRenderJsx from 'preact-render-to-string/jsx'
// import App from './components/app.tsx'
// import Head from './components/head.ts'
// export async function render(ctx, pretty) {
// const vdom = h(App, ctx)
// const content = pretty ? preactRenderJsx(vdom, {}, { pretty }) : preactRender(vdom)
// const head = Head.rewind()
// return {
// head,
// content,
// state: ctx,
// }
// }
export { default as routes } from './routes.ts'