Skip to content

Commit 190ace8

Browse files
committed
refactor(studio): update redirect logic to handle root and bare paths for Studio
1 parent 5168499 commit 190ace8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/cli/src/utils/studio.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,8 @@ export function createStudioStaticPlugin(distPath: string) {
271271
`$1="${STUDIO_PATH}/`,
272272
);
273273

274-
// Redirect bare path
274+
// Redirect root and bare path to Studio
275+
app.get('/', (c: any) => c.redirect(`${STUDIO_PATH}/`));
275276
app.get(STUDIO_PATH, (c: any) => c.redirect(`${STUDIO_PATH}/`));
276277

277278
// Serve static files with SPA fallback

0 commit comments

Comments
 (0)