Commit Graph
3 Commits
Author SHA1 Message Date
libretech c560de8ec0 fix(logging): log at info in production instead of silly
Strapi 4.25 builds its logger from @strapi/logger's default
configuration with config/logger.ts assigned over it. That default
level is "silly", and config/logger.ts set none, so production wrote
every level: the logger of the v0.1.1 image, built as Strapi builds it
with NODE_ENV=production, reports level silly. Debug and silly lines
carry order data, such as the PayPal order request with the buyer's
name and address.

The level is now info for NODE_ENV=production, which mp's compose.yml
sets for the cms, and debug in every other environment. Strapi's
request log lines are written at http, below info, so production no
longer writes them. The stack of an error field is written at debug
only.

Refs libretech/mp#71
Refs libretech/mp#67
2026-10-09 01:42:17 +02:00
libretech 9b0c6af8b7 Test the checkout code; publish images only for releases (#5)
build / test (push) Successful in 7s
build / build (push) Skipped
- src/checkout/ (PayPal order request, pricing, VAT) and src/logging/format.ts
  hold the checkout's pure code, moved out of PayPalApi, the product service
  and config without a behaviour change.
- npm test runs node:test on the TypeScript sources (type stripping), with no
  dependencies: 21 tests, 13 pin today's output, 8 describe the correct
  behaviour for the known defects of libretech/mp#67
  and are marked todo.
- CI: the tests run in the image's base (node:22.14.0-alpine) for every pull
  request, push to main and release tag. The image is built for pull requests
  and built and published only for v* tags; main no longer publishes :main
  and :sha-* images.

Refs libretech/mp#71

Co-authored-by: Michael Czechowski <mail@librete.ch>
2026-10-08 22:36:47 +02:00
Michael Czechowski 32a296baf2 feat: extract cms from mp/cms — initial libreshop/cms
Build and publish / build (push) Failing after 17s
Source moved verbatim from mp/cms/ on 2026-04-29; mp was the first
concrete adapter consuming the libreshop toolkit. Builds and publishes
git.librete.ch/libreshop/cms on every main / v* push via the standard
.gitea/workflows/build.yml shared across libreshop components.
2026-04-29 17:48:30 +02:00