Skip to content

yusukebe/preact-ssr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Preact on Cloudflare Workers

  • Preact
  • SSR
  • Hydrate

Hono SSR Middleware

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

Author

Yusuke Wada https://github.com/yusukebe

License

MIT

About

Preact SSR on Cloudflare Workers

Resources

Stars

Watchers

Forks

Releases

No releases published