Skip to content

Commit 7650f7d

Browse files
authored
fix: open base url when no routes are available (#6630)
1 parent 344f0ea commit 7650f7d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/core/src/server/open.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@ export async function open({
210210
if (routes.length) {
211211
// auto open the first one
212212
urls.push(`${baseUrl}${routes[0].pathname}`);
213+
} else {
214+
urls.push(baseUrl);
213215
}
214216
} else {
215217
urls.push(

0 commit comments

Comments
 (0)