Static Assets support folder expansion at root#2120
Merged
joachimvh merged 3 commits intoCommunitySolidServer:mainfrom Feb 25, 2026
Merged
Static Assets support folder expansion at root#2120joachimvh merged 3 commits intoCommunitySolidServer:mainfrom
joachimvh merged 3 commits intoCommunitySolidServer:mainfrom
Conversation
joachimvh
requested changes
Feb 23, 2026
Member
joachimvh
left a comment
There was a problem hiding this comment.
This seems like a good solution to your problem. I was wondering why you made it non-recursive? I would think it would be more flexible to make it recursive.
Some minor comments.
Contributor
Author
|
Your 3 review changes are included. As to why no recursive ? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📁 Related issues
#2119
✍️ Description
What changed
Why
/to a folder and hijacking all Solid routes.How to use
Simply map a folder to root - it will be expanded automatically:
{ "@id": "urn:solid-server:default:StaticAssetHandler", "@type": "StaticAssetHandler", "assets": [ { "@type": "StaticAssetEntry", "relativeUrl": "/", "filePath": "./node_modules/mashlib/dist/" }, { "@type": "StaticAssetEntry", "relativeUrl": "/assets/", "filePath": "./static/" } ] }In this example:
/mapping → expanded to explicit files (/mashlib.js,/841.mashlib.js, etc.)assets/mapping → keeps catch-all behavior (/assets/anything.jsserves from./static/at runtime)Tests
Notes
✅ PR check list
Before this pull request can be merged, a core maintainer will check whether