#Assets disappear after using basicSsl
3 messages · Page 1 of 1 (latest)
Hi @loud silo. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
Based on the information provided in the extracts, it seems like you're encountering a known issue with Astro when running astro dev with Vite's (dev) server set to https: true. This issue causes Astro image assets to return a 404 Not Found error. The issue was reproduced using @vitejs/plugin-basic-ssl, which is Vite's recommended way of running a dev server with https.
Unfortunately, the extracts do not provide a direct solution to this issue. However, you can track the progress of this issue or contribute to its resolution on the Astro GitHub page (https://github.com/withastro/astro/issues/8395).
In the meantime, you might want to consider running the dev server without https and proxy the requests separately, although this might also result in the same error.
Here's the relevant extract for your reference:
Astro v3.0.8
Node v18.17.1
System macOS (arm64)
Package Manager pnpm
Output static
Adapter none
Integrations none
Astro image assets return a 404 Not Found when running astro dev with Vite's (dev) server set to https: true.
The reproduction is using @vitejs/plugin-basic-ssl, which is Vite's recommended way of running a dev server with https.
I also tried running the dev server without https and proxy the requests separately, but this results in the same error (if needed I can provide the reproduction for this as well).
I expected the image to display properly.