[@astrojs/image] getImage utility throws 'ENOENT: no such file or directory' on astro build
with remote images
#4916
Labels
- P4: important
Violate documented behavior or significantly impacts performance (priority)
pkg: image
Related to the `@astrojs/image` package (scope)
What version of
astro
are you using?1.3.1
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
npm
What operating system are you using?
Linux
Describe the Bug
@astrojs/image
version >0.6.1
throwsENOENT: no such file or directory ...
when using thegetImage
utility on remote images.Example:
I fixed the issue by checking for the
dist/assets
directory existence here but maybe there is a better place to do so.PS: wouldn't it make sense to allow the configuration of the assets' path in the integration config?
PPS: with some guidance I am willing to submit a pull request for this issue
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-byrnbz?file=src/pages/index.astro
Participation
The text was updated successfully, but these errors were encountered: