entry-server.tsx 627 B

1234567891011121314151617181920212223242526
  1. // @refresh reload
  2. import { createHandler, StartServer } from "@solidjs/start/server"
  3. export default createHandler(
  4. () => (
  5. <StartServer
  6. document={({ assets, children, scripts }) => (
  7. <html lang="en">
  8. <head>
  9. <meta charset="utf-8" />
  10. <meta name="viewport" content="width=device-width, initial-scale=1" />
  11. <meta name="robots" content="noindex,nofollow" />
  12. {assets}
  13. </head>
  14. <body>
  15. <div id="app">{children}</div>
  16. {scripts}
  17. </body>
  18. </html>
  19. )}
  20. />
  21. ),
  22. {
  23. mode: "async",
  24. },
  25. )