wip: desktop work

This commit is contained in:
Adam
2025-10-24 15:51:31 -05:00
parent fa8e714d69
commit 6b82153263

View File

@@ -14,6 +14,8 @@ import Home from "@/pages"
const host = import.meta.env.VITE_OPENCODE_SERVER_HOST ?? "127.0.0.1"
const port = import.meta.env.VITE_OPENCODE_SERVER_PORT ?? "4096"
const url = new URLSearchParams(document.location.search).get("url") || `http://${host}:${port}`
const root = document.getElementById("root")
if (import.meta.env.DEV && !(root instanceof HTMLElement)) {
throw new Error(
@@ -25,7 +27,7 @@ render(
() => (
<ShikiProvider>
<MarkedProvider>
<SDKProvider url={`http://${host}:${port}`}>
<SDKProvider url={url}>
<SyncProvider>
<LocalProvider>
<MetaProvider>