Incorrect transform returned by parseURL
#10273
Labels
- P4: important
Violate documented behavior or significantly impacts performance (priority)
feat: assets
Related to the Assets feature (scope)
regression
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Starting from version 4.4.5 Astro fail to load all images on
astro dev
The same error triggered in version 4.4.6
The fix to #10199 causing this problem: 6aa660a
When astro config does not have
base
url.pathname
is "/_image" and everything work as expected, however when I setbase
in astro config, in my case'/tabmixplus-docs'
, then url.pathname is/tabmixplus-docs/
and the code above remove url.search.when the code in
assets/endpoint/node
callconst transform = await imageService.parseURL(url, imageConfig);
the result is undefined since parseURL check for url.searchParams then this error is triggeredWhat's the expected result?
imageService should work on development with or without baseUrl
Link to Minimal Reproducible Example
https://github.com/onemen/astro-image-bug
Participation
The text was updated successfully, but these errors were encountered: