mirror of
https://github.com/shishantbiswas/bknd-examples.git
synced 2026-02-28 20:31:14 +00:00
initial commit
This commit is contained in:
30
src/entry-server.tsx
Normal file
30
src/entry-server.tsx
Normal file
@@ -0,0 +1,30 @@
|
||||
// @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);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user