-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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: 0.26.0 needs publicDir
declaration
#2972
Comments
Looks like this is actually a mismatch between the docs and The blog-multiple-authors example starter shows this working properly, blog post images are kept in For reference, here's where the |
@tony-sull Interesting. I wonder if the same might be true for the |
Great catch! I just fixed the doc for |
What version of
astro
are you using?0.26.0
What package manager are you using?
npm
What operating system are you using?
macOS 12.3.1
Describe the Bug
If
publicDir
is not set inastro.config.mjs
, Astro doesn’t use the default setting of./publicDir
— and, as a result, produces 404 errors for any content in thepublicDir
directory. Only ifpublicDir: './publicDir',
is set will./publicDir
be recognized as the static assets directory.Repo where demonstrated: https://github.com/brycewray/astro-site (URL for result is https://astro-site-vercel.vercel.app/). In the repo, I have commented out the
publicDir
line so you can see that many 404s appear in the browser Inspector.Link to Minimal Reproducible Example
https://astro-site-vercel.vercel.app/
Participation
The text was updated successfully, but these errors were encountered: