forked from solidjs/solid-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathentry-server.tsx
More file actions
31 lines (30 loc) · 746 Bytes
/
entry-server.tsx
File metadata and controls
31 lines (30 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { createHandler, StartServer } from "@solidjs/start/server";
export default createHandler(() => (
<StartServer
document={({ assets, children, scripts }) => {
return (
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1"
/>
<link rel="icon" href="/favicon.ico" />
<link
rel="alternate icon"
href="/favicon.svg"
type="image/svg+xml"
/>
<script src="/scripts/browser-specific.js" type="module" />
{assets}
</head>
<body class="min-h-screen bg-slate-50 dark:bg-slate-900">
<div id="app">{children}</div>
{scripts}
</body>
</html>
);
}}
/>
));