-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 behaviour different with hybrid
mode and node
adapter between Linux and MacOS (ARM)
#11232
Comments
That's weird. I cloned you repository, try building it myself and experienced no issues at all, no matter which Node version I used (v18, v20, v21).
Is there anything special about your environment? Could you purge |
Just tried on one of my laptop, fresh clone and
So no change. I do not think I have anything weird on my env. I use |
Aha! I reproduced it 🚀 I noticed the directory where Astro is running on your side includes "_GITHUB." I added the same directory on my side, and voilà, I observed the same behavior. I'll investigate it further today and provide a detailed explanation. |
I have my path as |
That's the culprit: astro/packages/astro/src/core/util.ts Lines 122 to 129 in 769f11f
Notice the condition in line 124. It checks for the presence of We should limit paths to the repository root. EDIT: I'm working on a fix now. It's nearly ready 🔥 |
|
Astro Info
Describe the Bug
I recently opened an issue with Astro Starlight because I was seeing a weird behaviour with SSR.
In building the test case, I've noticed that the issue can be reproduced on MacOS (ARM) but not on codesandbox (or stackblitz) with Linux. It pointed me out to further debug and potentially rule out Starlight, and consider that the issue is within the adapter or compiler somewhere 😕
None of the pages included in starlight are pre-rendered when the build runs on MacOS. They should be prerendered.
However, when the build runs on Linux, they all get pre-rendered.
I tried different version of nodes too, as the default one in Stackblitz is v18 and I was running on v20, but this has not change anything.
In trying to reproduce, I collected logs and committed into my repo. Look for the following
What's the expected result?
The result is that the pages in starlight plugin get pre-rendered too. There's no reason for not rendering then and, given the
hybrid
configuration, by default they should be rendered.Link to Minimal Reproducible Example
https://stackblitz.com/~/github.com/LunaticMuch/fuzzy-giggle
Participation
The text was updated successfully, but these errors were encountered: