-
-
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
New prerender option breaks catch-all route on root when using preview #6020
Comments
Prerender support was added to the Node adapter in 5.0.3. This should be working now! |
Hi! I've just tested this with the Node adapter version 5.0.3 and the problem persists. if I prerender any page, the [...params].astro page on the root still throws a 404. As mentioned, this only happens after building the app. I can work fine in dev mode and navigate to our [...paras].astro page without any issues. |
Thanks! Reopening |
I am having the same issue, glad you are already working on it. |
mark |
I have just done a bug related to prerender issues. |
Just trying to give more two cents here: it's not only on preview mode, |
Thanks for your hint. |
What version of
astro
are you using?2.0.2
Are you using an SSR adapter? If so, which one?
Node
What package manager are you using?
yarn
What operating system are you using?
Mac
Describe the Bug
Using Node in standalone mode and given the following pages directory:
If we apply
export const prerender = true
to any page on the root (i.e. myfirstpage or mysecondpage) then the rest route [...params].astro returns a 404 in preview mode after a new build. When in dev mode the page displays correctly.The page also displays correctly if nested in another folder. In other words if we move it off the root.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-n7aqnf?file=src/pages/mypage.astro
Participation
The text was updated successfully, but these errors were encountered: