fix: redirect admin to admin/ (regression)
This commit is contained in:
parent
d7b1e19985
commit
a9d5e10be9
1 changed files with 5 additions and 0 deletions
|
|
@ -80,6 +80,11 @@ export default createHonoServer({
|
||||||
overrideGlobalObjects: true,
|
overrideGlobalObjects: true,
|
||||||
port: config.server.port,
|
port: config.server.port,
|
||||||
hostname: config.server.host,
|
hostname: config.server.host,
|
||||||
|
beforeAll: async (app) => {
|
||||||
|
app.use(__PREFIX__, async (c) => {
|
||||||
|
return c.redirect(`${__PREFIX__}/`);
|
||||||
|
});
|
||||||
|
},
|
||||||
serveStaticOptions: {
|
serveStaticOptions: {
|
||||||
clientAssets: {
|
clientAssets: {
|
||||||
// This is part of our monkey-patch for react-router-hono-server
|
// This is part of our monkey-patch for react-router-hono-server
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue