Spaces:
Paused
Paused
icebear0828 Claude Opus 4.6 commited on
Commit ·
fcc0669
1
Parent(s): 90172f5
fix: remove dead login.html reference causing UI fallback on fresh installs
Browse filesThe login page was removed earlier but web.ts still tried to serve it
when unauthenticated, causing a read error and showing the "UI files
not found" fallback. Now always serves dashboard.html.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- src/routes/web.ts +1 -5
src/routes/web.ts
CHANGED
|
@@ -12,11 +12,7 @@ export function createWebRoutes(accountPool: AccountPool): Hono {
|
|
| 12 |
|
| 13 |
app.get("/", (c) => {
|
| 14 |
try {
|
| 15 |
-
|
| 16 |
-
const html = readFileSync(resolve(publicDir, "dashboard.html"), "utf-8");
|
| 17 |
-
return c.html(html);
|
| 18 |
-
}
|
| 19 |
-
const html = readFileSync(resolve(publicDir, "login.html"), "utf-8");
|
| 20 |
return c.html(html);
|
| 21 |
} catch (err) {
|
| 22 |
const msg = err instanceof Error ? err.message : String(err);
|
|
|
|
| 12 |
|
| 13 |
app.get("/", (c) => {
|
| 14 |
try {
|
| 15 |
+
const html = readFileSync(resolve(publicDir, "dashboard.html"), "utf-8");
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
return c.html(html);
|
| 17 |
} catch (err) {
|
| 18 |
const msg = err instanceof Error ? err.message : String(err);
|