-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
public_folder forces leading / #2238
Comments
I'm not exactly a gridsome expert, but I'm pretty sure the paths in your config need to be absolute. Pretty sure you don't want them to be in root either. So something like:
|
@tomrutgers I want to avoid placing files into the static folder, if I change the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Resolved by #2958. Docs here: https://www.netlifycms.org/docs/beta-features/#folder-collections-media-folder |
Describe the bug
Using
public_folder: "../uploads"
I'd assume it would return../uploads/image.png
but the result is./../uploads/image.png
thus resulting in a 404.The forced leading slash will prevent Gridsome from optimizing the images.
Expected behavior
Using
public_folder: "../uploads"
should return../uploads/image.png
NOT./../uploads/image.png
.CMS configuration
Additional context
Using Gridsome as static site generator.
The text was updated successfully, but these errors were encountered: