diff --git a/packages/pages/src/dev/server/ssr/parseNonProdUrl.ts b/packages/pages/src/dev/server/ssr/parseNonProdUrl.ts index 4cb468db9..172ea7240 100644 --- a/packages/pages/src/dev/server/ssr/parseNonProdUrl.ts +++ b/packages/pages/src/dev/server/ssr/parseNonProdUrl.ts @@ -13,9 +13,8 @@ export function parseAsEntityUrl(url: URL): { } export function parseAsStaticUrl(url: URL): { staticURL: string } { - const staticURL = decodeURI(url.pathname).substring(1); return { - staticURL, + staticURL: decodeURI(url.pathname).substring(1), }; }