- Preact
- SSR
- Hydrate
import { Hono } from 'hono'
import { serveStatic } from 'hono/cloudflare-workers'
import App from './App'
import api from './api'
import { ssr } from './ssr/middleware'
const app = new Hono()
app.route('/api', api)
app.get('/assets/*', serveStatic({ root: './public' }))
app.get('*', ssr(App))
export default app
Yusuke Wada https://github.com/yusukebe
MIT