White-label refactor: ship neutral placeholder content #1
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The current libreshop/cms image was extracted verbatim from mp/cms/ and contains muellerprints-specific Strapi content — product schemas, copy strings, brand assets, asset paths. Adapters (e.g. mp) should override these via env + bind-mounts, not inherit them from the shared base.
Per the architectural decision (see netcup/libreshop/README.md), libreshop/cms must be white-label: schema only, with neutral placeholder content. Adapter-specific data lives in the adapter's
cms-dbPostgres +cms-datavolume. The image carries the "Strapi project + libreshop schema definitions + sane defaults" only.Tasks
config/admin.ts,config/api.ts,config/server.tssrc/api/<content-type>/content-types/<schema>/lifecycles.tsfor any mp-flavored business rulessrc/services/PdfApi.ts,MailApi.ts,PayPalApi.tsfor any hard-coded mp endpointspublic/uploads/LIBRESHOP_BRAND_NAME,LIBRESHOP_LEGAL_ADDRESS,LIBRESHOP_LOGO_URL,LIBRESHOP_PRIMARY_COLOR, etc.) consumed at runtime.\,\) that adapters override.README.mdso adapters know which keys to set./root/code/mp-next/.env(or a separatemp-cms-overrides.jsonbind-mount) and stop relying on the image's content.Acceptance criteria
Related