-
-
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
🐛 BUG: public folder doesn't get copied to subpath if buildOptions.site is provided in development #2409
Comments
I started trying to fix this in #2348, but it needs more work |
I’m sorry you’re running into this. As @tadeuzagallo mentioned, this is a known issue, and we are working on it. |
Here's a work around that I'm currently using: Points to be aware of:
Hope it helps someone. |
Closed out a few duplicate issues to use this as the primary since it's the oldest Confirmed this still reproduces with the lastest beta - clone the Comparing against Vite's |
Expected behavior:
|
Was poking around and noticed some work was happening on this front! Noting here as reference:
In fact my minimal reproduction now loads assets correctly. |
Looks like I missed closing this with the latest for subpaths, glad this is fixed now! |
What version of
astro
are you using?0.22.13
What package manager are you using?
yarn
What operating system are you using?
Ubuntu
Describe the Bug
The
/public
folder doesn't get copied to the subpath if thebuildOptions.site
config option is provided. The bug is present only in development mode. It works fine in production.Link to Minimal Reproducible Example
https://astro.new/subpath?on=stackblitz
The text was updated successfully, but these errors were encountered: