summaryrefslogtreecommitdiffhomepage
path: root/cloud/web/src/entry-server.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'cloud/web/src/entry-server.tsx')
-rw-r--r--cloud/web/src/entry-server.tsx7
1 files changed, 7 insertions, 0 deletions
diff --git a/cloud/web/src/entry-server.tsx b/cloud/web/src/entry-server.tsx
new file mode 100644
index 000000000..5dd33a149
--- /dev/null
+++ b/cloud/web/src/entry-server.tsx
@@ -0,0 +1,7 @@
+import { renderToStringAsync } from "solid-js/web"
+import { App } from "./app"
+
+export async function render(props: { url: string }) {
+ const app = await renderToStringAsync(() => <App url={props.url} />)
+ return { app }
+}