This commit is contained in:
Michael Freno
2025-12-16 22:42:05 -05:00
commit 8fb748f401
81 changed files with 4378 additions and 0 deletions

29
src/entry-server.tsx Normal file
View File

@@ -0,0 +1,29 @@
// @refresh reload
import { createHandler, StartServer } from "@solidjs/start/server";
import { validateServerEnv } from "./env/server";
try {
const validatedEnv = validateServerEnv(import.meta.env);
console.log("Environment validation successful");
} catch (error) {
console.error("Environment validation failed:", error);
}
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="/favicon.ico" />
{assets}
</head>
<body>
<div id="app">{children}</div>
{scripts}
</body>
</html>
)}
/>
));