import { App } from '@tinyhttp/app' import sirv from 'sirv' import { renderToString } from 'vue/server-renderer' import { createApp } from './app.js' const app = new App() app .use(sirv()) .get('*', async (_req, res) => { const app = createApp() const html = await renderToString(app) res.send(` Vue SSR Example
${html}
`) }) .listen(3000)