Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

entry-server.tsx

20 lines531 Bytes

1import { createHandler, StartServer } from '@solidjs/start/server'
2​
3export default createHandler(() => (
4 <StartServer
5 document={({ assets, children, scripts }) => (
6 <html lang="en">
7 <head>
8 <meta charset="utf-8" />
9 <meta name="viewport" content="width=device-width, initial-scale=1" />
10 <link rel="icon" href="/favicon.ico" />
11 {assets}
12 </head>
13 <body>
14 <div id="app">{children}</div>
15 {scripts}
16 </body>
17 </html>
18 )}
19 />
20))