-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When redirecting pre-rendered pages, Astro serves a "Redirecting to [url]" placeholder #7889
Comments
Thanks for opening a new issue! Looks like this is another case we missed. We'll take a look at this as soon as we can. |
Hey @natemoo-re! Have you any update about this issue ? :) |
I got around this with the following addition to my config (using the // ...
build: {
redirects: false,
},
// ... |
I'm on Astro 4.0.6 and I'm having this issue. |
I have similar issue when deploying on github pages. I am using Astro 4.0.8. It works fine locally but in production It flashes for a brief moment. |
It's worth opening a new issue with a new reproduction. |
Sure here it is #9662 |
I have same problem on astro 5 (deployed on azure static web apps) |
Same problem here with astro 5.3, somebody found a solution ? |
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: