fix: redirect admin to admin/ (regression)

This commit is contained in:
Aarnav Tale
2025-08-26 15:18:48 -04:00
parent d7b1e19985
commit a9d5e10be9
+5
View File
@@ -80,6 +80,11 @@ export default createHonoServer({
overrideGlobalObjects: true,
port: config.server.port,
hostname: config.server.host,
beforeAll: async (app) => {
app.use(__PREFIX__, async (c) => {
return c.redirect(`${__PREFIX__}/`);
});
},
serveStaticOptions: {
clientAssets: {
// This is part of our monkey-patch for react-router-hono-server