Remove webui base path
diff --git a/packages/webui/package.json b/packages/webui/package.json
index 74f6b9e..24d0ddf 100644
--- a/packages/webui/package.json
+++ b/packages/webui/package.json
@@ -8,7 +8,7 @@
"scripts": {
"build": "react-router build",
"clean": "rimraf .cache build",
- "deploy": "wrangler deploy",
+ "deploy": "wrangler pages deploy build/client --project-name=iris-webui",
"start": "react-router dev",
"validate": "tsc --noEmit"
},
diff --git a/packages/webui/public/webui/assets/favicon.png b/packages/webui/public/assets/favicon.png
similarity index 100%
rename from packages/webui/public/webui/assets/favicon.png
rename to packages/webui/public/assets/favicon.png
Binary files differ
diff --git a/packages/webui/react-router.config.ts b/packages/webui/react-router.config.ts
index 6560dae..94e5b57 100644
--- a/packages/webui/react-router.config.ts
+++ b/packages/webui/react-router.config.ts
@@ -6,7 +6,6 @@
export default {
appDirectory: "src/app",
buildDirectory: "build",
- basename: "/webui",
ssr: false,
prerender: false
} satisfies Config;
\ No newline at end of file
diff --git a/packages/webui/src/app/components/Loading.tsx b/packages/webui/src/app/components/Loading.tsx
index cc40064..c3e6bcc 100644
--- a/packages/webui/src/app/components/Loading.tsx
+++ b/packages/webui/src/app/components/Loading.tsx
@@ -22,7 +22,7 @@
<div className="relative w-full h-full min-h-128 p-8">
<div className="w-full h-full roundness-3xl bg-linear-to-b from-ui-5 to-ui-0">
<div className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-30 w-32 h-32">
- <img id="loadingImg" className="w-full h-full" src="/webui/assets/favicon.png" />
+ <img id="loadingImg" className="w-full h-full" src="/assets/favicon.png" />
</div>
{children ? <div className="flex flex-row items-center font-medium text-2xl absolute top-3/4 left-1/2 -translate-x-1/2 z-30"><span>{children}</span><LoadingTextDots /></div> : null}
</div>
diff --git a/packages/webui/src/app/components/Shell.tsx b/packages/webui/src/app/components/Shell.tsx
index f2e04ce..99c8118 100644
--- a/packages/webui/src/app/components/Shell.tsx
+++ b/packages/webui/src/app/components/Shell.tsx
@@ -24,7 +24,7 @@
<NavbarLayout left={(
<div className="flex-grow flex flex-row items-center space-x-8">
<Link to="/">
- <NavbarTitle logo="/webui/assets/favicon.png">
+ <NavbarTitle logo="/assets/favicon.png">
Iris
</NavbarTitle>
</Link>
diff --git a/packages/webui/src/app/root.tsx b/packages/webui/src/app/root.tsx
index a157f47..55ea1d6 100644
--- a/packages/webui/src/app/root.tsx
+++ b/packages/webui/src/app/root.tsx
@@ -47,7 +47,7 @@
if (!jwt) {
const redirectUrl = new URL(window.location.origin);
- redirectUrl.pathname = "/webui/login";
+ redirectUrl.pathname = "/login";
const nonce = crypto.randomUUID();
window.localStorage.setItem("nonce", JSON.stringify({
@@ -135,7 +135,7 @@
<meta charSet="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Iris</title>
- <link rel="icon" href="/webui/assets/favicon.png" />
+ <link rel="icon" href="/assets/favicon.png" />
<Links />
</HeadWrapper>
<BodyWrapper>
diff --git a/packages/webui/src/app/routes/login.tsx b/packages/webui/src/app/routes/login.tsx
index 79359ec..afa1ff8 100644
--- a/packages/webui/src/app/routes/login.tsx
+++ b/packages/webui/src/app/routes/login.tsx
@@ -48,12 +48,9 @@
return;
}
- const webuiUrl = new URL(window.location.origin);
- webuiUrl.pathname = "/webui";
-
window.localStorage.removeItem("nonce");
window.localStorage.setItem("jwt", jwt);
- window.location.href = webuiUrl.href;
+ window.location.href = window.location.origin;
}, []);
return (
diff --git a/packages/webui/wrangler.toml b/packages/webui/wrangler.toml
deleted file mode 100644
index 2152413..0000000
--- a/packages/webui/wrangler.toml
+++ /dev/null
@@ -1,6 +0,0 @@
-name = "iris-webui"
-main = "src/worker/index.ts"
-compatibility_date = "2025-07-12"
-
-account_id = "17174d3fc7098a664b04fb3c4c4ec65c"
-workers_dev = false
\ No newline at end of file