feat: init

This commit is contained in:
EdgeOne Pages
2025-12-31 17:08:26 +08:00
commit d22628f972
19 changed files with 7647 additions and 0 deletions

18
functions/routers/ssr.tsx Normal file
View File

@@ -0,0 +1,18 @@
import { Hono } from 'hono';
import { Layout, Content } from '../components/Layout';
const ssr = new Hono();
// Dynamic page route
ssr.get('/:name', (c) => {
const { name } = c.req.param();
const props = {
name: name,
siteData: {
title: `Hello ${name} - JSX Sample`,
},
};
return c.html(<Content {...props} />);
});
export default ssr;