When redirecting pre-rendered pages, Astro serves a "Redirecting to [url]" placeholder #7889
Labels
- P4: important
Violate documented behavior or significantly impacts performance (priority)
feat: redirects
Related to the redirects feature (scope)
pkg: vercel
Related to Vercel adapter (scope)
What version of
astro
are you using?2.9.6
Are you using an SSR adapter? If so, which one?
Vercel
What package manager are you using?
pnpm
What operating system are you using?
Mac
What browser are you using?
Chrome, Safari
Describe the Bug
This issue was discussed in #7731 (closed), but has not been resolved for Vercel.
With Astro's redirects configured in SSR mode, but with pre-rendered pages, there is a brief flash of "Redirecting to... [url]" before being served the target url of the redirect.
This happens both in hybrid mode, and in server mode (when the pages being served have
export const prerender = true;
in their frontmatter). It seems not to happen when the source url for the redirect is/
.What's the expected result?
Redirection of pre-rendered pages in server (or hybrid) mode should happen seamlessly.
Link to Minimal Reproducible Example
Live (navigate to
/foo
)repo
Participation
The text was updated successfully, but these errors were encountered: