mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00

* feat: rootpath for static assets and links1 * fix: static asset handler respects root path * fix: use rootPath for links * tests: fix the tests after adding consuctor params * feat: change matchregex instead of stored URLs * feat: baseUrl for handlebar engine and templates * feat: full baseUrl passed to templates * test: fix integration tests + templates * chore: implement requested changes * docs: Describe TemplateEngine interface changes Co-authored-by: Joachim Van Herwegen <joachimvh@gmail.com>
36 lines
1.2 KiB
JSON
36 lines
1.2 KiB
JSON
{
|
|
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^5.0.0/components/context.jsonld",
|
|
"@graph": [
|
|
{
|
|
"comment": "Servers static files on fixed URLs.",
|
|
"@id": "urn:solid-server:default:StaticAssetHandler",
|
|
"@type": "StaticAssetHandler",
|
|
"options_expires": 86400,
|
|
"baseUrl": { "@id": "urn:solid-server:default:variable:baseUrl" },
|
|
"assets": [
|
|
{
|
|
"StaticAssetHandler:_assets_key": "/favicon.ico",
|
|
"StaticAssetHandler:_assets_value": "@css:templates/images/favicon.ico"
|
|
},
|
|
{
|
|
"StaticAssetHandler:_assets_key": "/.well-known/css/styles/",
|
|
"StaticAssetHandler:_assets_value": "@css:templates/styles/"
|
|
},
|
|
{
|
|
"StaticAssetHandler:_assets_key": "/.well-known/css/fonts/",
|
|
"StaticAssetHandler:_assets_value": "@css:templates/fonts/"
|
|
},
|
|
{
|
|
"StaticAssetHandler:_assets_key": "/.well-known/css/images/",
|
|
"StaticAssetHandler:_assets_value": "@css:templates/images/"
|
|
},
|
|
{
|
|
"StaticAssetHandler:_assets_key": "/.well-known/css/scripts/",
|
|
"StaticAssetHandler:_assets_value": "@css:templates/scripts/"
|
|
}
|
|
|
|
]
|
|
}
|
|
]
|
|
}
|