-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
_image endpoint returning a 404 for local images #8735
Comments
Also forgot to include this in the issue but my image and vite config are here:
|
Tried the repro locally and everything works for me on macOS, so this could be a Windows issue maybe |
@Princesseuh Could it be that this line: Needs a similar workaround for Windows as this one: |
Ah yes, probably. I might've gotten tripped up with the fact that this previously only handled URLs and not file paths |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
Chrome
Describe the Bug
After enabling the Vite Basic SSL plugin (@vitejs/plugin-basic-ssl) and serving my local dev on https my images that are stored within the
src
folder are returning a 404 when trying to load from the_image
endpoint.What's the expected result?
The endpoint should return a 200 and the image should show.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-x9jtgg https://codesandbox.io/p/sandbox/condescending-mirzakhani-8qpy34 ------ I have added a stackblitz link that won't run dev and a codesandbox that will run dev but not connect! So I didn't know what to do. They both break because of the ssl plugin but the code is there
Participation
The text was updated successfully, but these errors were encountered: