Files
bknd-examples/src/entry-server.tsx
2026-02-18 22:22:10 +05:30

30 lines
817 B
TypeScript

// @refresh reload
import { createHandler, StartServer } from "@solidjs/start/server";
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" />
<link rel="icon" href="/solid.svg" />
{assets}
</head>
<body>
<div id="app">{children}</div>
{scripts}
</body>
</html>
)}
/>
));
if (typeof process !== "undefined") {
process.on("unhandledRejection", (reason, promise) => {
console.error("Caught Unhandled Rejection:", reason);
});
process.on("uncaughtException", (err) => {
console.error("Caught Uncaught Exception:", err);
});
}