opencode/cloud/app/src/entry-server.tsx

26 lines
711 B
TypeScript
Raw Normal View History

2025-08-16 07:29:24 +08:00
// @refresh reload
2025-08-28 04:02:30 +08:00
import { createHandler, StartServer } from "@solidjs/start/server"
2025-08-16 07:29:24 +08:00
export default createHandler(() => (
<StartServer
document={({ assets, children, scripts }) => (
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
2025-08-28 05:53:04 +08:00
<link rel="icon" href="/favicon.svg" />
<meta property="og:image" content="/social-share.png" />
<meta property="twitter:image" content="/social-share.png" />
2025-08-16 07:29:24 +08:00
{assets}
</head>
2025-08-28 04:02:30 +08:00
<body>
2025-08-16 07:29:24 +08:00
<div id="app">{children}</div>
{scripts}
</body>
</html>
)}
/>
2025-09-01 23:47:46 +08:00
), {
2025-09-02 15:14:56 +08:00
mode: "async",
2025-09-01 23:47:46 +08:00
})