Closed anarion80 closed 1 week ago
fsPath
was intentionally never added to types or documented, as it was always intended to be an internal detail more than an actual API. What is your use case with it?
Accessing the file to darken it and blur and then use as background for og image generation.
My current workaround is use the src
which is available like this:
originalImagePath = `dist${page.heroImage.src}`;
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Essentially the same as https://github.com/withastro/astro/issues/12136
With a collection defined using Content Layer loader:
the resulting heroImage object does not have
fsPath
like previously with content collections:I have the same situation with Astro 4.15.9 using experimental flag for
contentLayer
or using 5.0 beta without the experimental flag.Minimal reproduction shows the console dump for the image.
What's the expected result?
fsPath
is still there"Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-ngcwe1?file=src%2Fpages%2Findex.astro
Participation