mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
ee38b3a946
Co-authored-by: Luiz Ferraz <luiz@lferraz.com> Co-authored-by: Alexander Niebuhr <alexander@nbhr.io> Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
631 B
631 B
astro |
---|
major |
[changed]: entryPoint
type inside the hook astro:build:ssr
In Astro v4.x, the entryPoint
type was RouteData
.
Astro v5.0 the entryPoint
type is IntegrationRouteData
, which contains a subset of the RouteData
type. The fields isIndex
and fallbackRoutes
were removed.
What should I do?
Update your adapter to change the type of entryPoint
from RouteData
to IntegrationRouteData
.
-import type {RouteData} from 'astro';
+import type {IntegrationRouteData} from "astro"
-function useRoute(route: RouteData) {
+function useRoute(route: IntegrationRouteData) {
}