Skip to content

Commit 699a2ca

Browse files
committed
Add server-side redirect from root to console in HonoServerPlugin
1 parent 1494b8e commit 699a2ca

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apps/console/objectstack.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ class PatchedHonoServerPlugin extends HonoServerPlugin {
7777
return c.text('Asset Not Found', 404);
7878
});
7979

80+
// Server-side Redirect: Root -> Console
81+
app.get('/', (c: any) => {
82+
return c.redirect('/console/');
83+
});
84+
8085
// Register fallback after serveStatic (which is added in listen/originalStart)
8186
app.get('/console/*', async (c: any) => {
8287
// Ignore API calls -> let them 404

0 commit comments

Comments
 (0)