-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
<Code>
component Fail to Build after Upgrading to Astro v4 and Cloudflare Adapter v8.0.0
#110
Comments
@alexanderniebuhr should we add |
@ematipico I don't think we can.
Can someone elaborate, when this is needed, is it during runtime? If so it won't work, cause Cloudflare's edge runtime doesn't have filesystem. If it is only needed during build/compile time, we might be able to fix this. |
Maybe we can work around it |
In general I advise that everything is possible using Cloudflare, it is just a matter of how to write code. I guess if we refactor some stuff, we might be able to get it running on Cloudflare. I'm happy to help, but don't have to much time right now though! |
I can probably look into this. This seems to reveal a bigger problem where we might be including a larger bundle than expected for |
I've sent 3 PRs that should fix this. It's a conglomerate of different issues causing this problem 😬
One quicker way of fixing this too is to refactor import { createShikiHighlighter } from '@astrojs/markdown-remark/shiki'; So that it's more runtime-agnostic. Now that I typed this out, I think that might be the better solution instead and will try that 😄 |
Astro Info
Describe the Bug
Build fails at the stage "finalizing server assets" with the following error if I use the
<Code>
build-in component fromastro:components
Note:
<Code>
is usednode
adapter even with<Code>
Thanks
What's the expected result?
The build should succeed.
Link to Minimal Reproducible Example
https://codesandbox.io/p/devbox/suspicious-wozniak-82gcxq
Participation
The text was updated successfully, but these errors were encountered: