Skip to content

Commit

Permalink
feat(seeding): simplify seeded-root config by importing pre-existing …
Browse files Browse the repository at this point in the history
…prefilled-root config
  • Loading branch information
adlerfaulkner committed Mar 6, 2022
1 parent 0ba39bd commit 27a7fe7
Showing 1 changed file with 3 additions and 22 deletions.
25 changes: 3 additions & 22 deletions config/app/init/initializers/seeded-root.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,9 @@
{
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^3.0.0/components/context.jsonld",
"import": [
"files-scs:config/app/init/initializers/prefilled-root.json"
],
"@graph": [
{
"comment": "Makes sure the root container exists and contains the necessary resources.",
"@id": "urn:solid-server:default:RootInitializer",
"@type": "ConditionalHandler",
"storageKey": "rootInitialized",
"storageValue": true,
"storage": { "@id": "urn:solid-server:default:SetupStorage" },
"source": {
"@type": "ContainerInitializer",
"args_baseUrl": { "@id": "urn:solid-server:default:variable:baseUrl" },
"args_path": "/",
"args_store": { "@id": "urn:solid-server:default:ResourceStore" },
"args_generator": {
"@type": "TemplatedResourcesGenerator",
"templateFolder": "@css:templates/root/prefilled",
"factory": { "@type": "ExtensionBasedMapperFactory" },
"templateEngine": { "@type": "HandlebarsTemplateEngine" }
},
"args_storageKey": "rootInitialized",
"args_storage": { "@id": "urn:solid-server:default:SetupStorage" }
}
},
{
"comment": "This is where the seeded pod configurations will be stored.",
"@id": "urn:solid-server:default:SeededPodConfigurationStorage",
Expand Down

0 comments on commit 27a7fe7

Please sign in to comment.