-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
SSR routes 404 on Netlify when a non-competing static route uses rest parameter at the root #3
Comments
Additional relevant issue withastro/astro#8121 |
Can we confirm that this is still an issue. |
Closing for now, because the Issue seems to be stale. Happy to reopen, if we get new information or confirmation. |
Hey sorry for the delay was slated to work on this this week. (as to reproduce in latest). We still have the problem on most of our sites. I just need to recreate a minimal repo. Thanks for your patience. |
Hi @alexanderniebuhr I updated the minimal repo to Astro 3.5.0 and @astro/netlify 3.0.4 and was still able to see the problem occur with Let me know if I can help further and how. PS: mini repo deployed at https://idyllic-centaur-501e95.netlify.app/ |
Hi, I could reproduce the same issue in one of our projects using Astro 3.6.4 and Netlify Adapter 3.1.1. Our setup and config looks as follow: astro.config.mjs: pages:
|
Just letting you know @Skn0tt we might need to validate this with v4 |
My gut feeling is that v4 should have fixed this, because it implements the SSR Routing in a different way than before that's less likely to lead to this kind of bug. I'll put it on my todo to verify that. |
I've tried to upgrade the minimal repo using
|
That looks like a different error, potentially related to this line where the new adapter is importing the Let me see if I can reproduce that. |
Can reproduce. I've opened #104 to track this, and will work on a fix in a bit. |
https://github.com/withastro/adapters/releases/tag/%40astrojs%2Fnetlify%404.0.1 should fix the bug you're seeing @regisphilibert. Could you try again? |
🎉 Yes all is good! I'm glad and grateful the Netlify adapter finally got some love with this overhaul! :) We had to give up on any SSR on Netlify because of this... |
What version of
astro
are you using?2.7.2
Are you using an SSR adapter? If so, which one?
Netlify 2.3.0
What package manager are you using?
npm
What operating system are you using?
Mac
What browser are you using?
Chrome
Describe the Bug
On a hybrid project, SSR routes systematically returns 404 on Netlify when a rest parameter is used at the root of the pages directory.
🚫
✅
This problem appears above @astro/netlify 2.2.0, downgrading to said version fixes the issue. Astro version seems irrelevant.
What's the expected result?
SSR routes should work on Netlify regardless of rest parameter dynamic static route at the root.
Link to Minimal Reproducible Example
https://github.com/regisphilibert/astro-issue-repro-netlify-ssr
Participation
The text was updated successfully, but these errors were encountered: