wip: gateway
This commit is contained in:
13
cloud/web/src/entry-client.tsx
Normal file
13
cloud/web/src/entry-client.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
/* @refresh reload */
|
||||
|
||||
import { hydrate, render } from "solid-js/web"
|
||||
import { App } from "./app"
|
||||
|
||||
if (import.meta.env.DEV) {
|
||||
render(() => <App />, document.getElementById("root")!)
|
||||
}
|
||||
|
||||
if (!import.meta.env.DEV) {
|
||||
if ("_$HY" in window) hydrate(() => <App />, document.getElementById("root")!)
|
||||
else render(() => <App />, document.getElementById("root")!)
|
||||
}
|
||||
Reference in New Issue
Block a user