diff --git a/src/client/app/router.ts b/src/client/app/router.ts index c637fed7..2c09c2e4 100644 --- a/src/client/app/router.ts +++ b/src/client/app/router.ts @@ -165,6 +165,7 @@ export function createRouter( } function syncRouteQueryAndHash() { + if (!inBrowser) return route.query = location.search route.hash = location.hash }