mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
[ci] format
This commit is contained in:
parent
861f10eafd
commit
8867f3c99d
1 changed files with 6 additions and 2 deletions
|
@ -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,
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue