diff --git a/.changeset/spotty-camels-joke.md b/.changeset/spotty-camels-joke.md new file mode 100644 index 0000000000..a924e12ccf --- /dev/null +++ b/.changeset/spotty-camels-joke.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Adds the missing export for accessing the `getFallback()` function of the client site router. diff --git a/packages/astro/src/transitions/router.ts b/packages/astro/src/transitions/router.ts index 0f3d912099..29029cefb8 100644 --- a/packages/astro/src/transitions/router.ts +++ b/packages/astro/src/transitions/router.ts @@ -132,7 +132,7 @@ async function fetchHTML( } } -function getFallback(): Fallback { +export function getFallback(): Fallback { const el = document.querySelector('[name="astro-view-transitions-fallback"]'); if (el) { return el.getAttribute('content') as Fallback;