Closed thewilloftheshadow closed 2 months ago
Did you reference any images in your document?
We use image-size package to fetch image sizes, they have to be a valid image path/url. If you could provide a minimal production, I can help investigate the problem
Yes I do reference one image (external URL on our cdn: https://cdn.buape.com/CarbonWordmark.png) I'll try to get this to a reproduction repo tomorrow!
I haven't been able to reproduce this consistently isolated yet, but this is the file that it's erroring on (and the only image)
---
title: Introduction
index: true
icon: Album
---
![Wordmark](https://cdn.buape.com/CarbonWordmark.png)
Carbon is a powerful framework designed for building HTTP Discord bots.
Failed to reproduce, you're also on MacOS so I don't think it's OS-related.
Perhaps it's because of other usages? ![alt](image)
will be recognized as an image.
I think it's likely two reasons:
The plugin only fetches the image size when needed so it shouldn't happen unless there's problem fetching the image. If the problem consists, please consider using Next.js Image
component in MDX file directly.
To Reproduce
Sometimes, randomly, the build for the nextjs app that fumadocs is in completely fails with this error:
This happens inconsistently, and rerunning the build works. I see it happen both in builds on GitHub actions and locally, and inconsistently so it's hard to track down. Figured I'd report it anyway
Current vs. Expected behavior
I expected it to built correctly like it usually does, but sometimes (like 1/10 times) it will fail
Provide environment information
Which area(s) are affected? (Select all that apply)
Core
Additional context
No response