0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

[ci] format

This commit is contained in:
matthewp 2023-07-28 16:02:32 +00:00 committed by astrobot-houston
parent 861f10eafd
commit 8867f3c99d

View file

@ -10,7 +10,9 @@ export function serializeRouteData(
...routeData,
generate: undefined,
pattern: routeData.pattern.source,
redirectRoute: routeData.redirectRoute ? serializeRouteData(routeData.redirectRoute, trailingSlash) : undefined,
redirectRoute: routeData.redirectRoute
? serializeRouteData(routeData.redirectRoute, trailingSlash)
: undefined,
_meta: { trailingSlash },
};
}
@ -27,6 +29,8 @@ export function deserializeRouteData(rawRouteData: SerializedRouteData): RouteDa
segments: rawRouteData.segments,
prerender: rawRouteData.prerender,
redirect: rawRouteData.redirect,
redirectRoute: rawRouteData.redirectRoute ? deserializeRouteData(rawRouteData.redirectRoute) : undefined,
redirectRoute: rawRouteData.redirectRoute
? deserializeRouteData(rawRouteData.redirectRoute)
: undefined,
};
}