docs: CL-8 the fee engine has two copies (pack README)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -56,6 +56,8 @@ If the cloud is down, restaurants must keep taking orders (global Rule 8). Don't
|
|||||||
**CL-6. The license signing key is permanent.**
|
**CL-6. The license signing key is permanent.**
|
||||||
`LICENSE_SIGNING_KEY` (cloud `.env`) signs every site's license. Its public half is built into the site code. Never regenerate or lose it: a new key means every site needs a new image. Keep the backup at `%USERPROFILE%\.xenia\license_signing_key.txt` safe. Never add fields to the token payload that old sites would misread; bump `v` for incompatible changes.
|
`LICENSE_SIGNING_KEY` (cloud `.env`) signs every site's license. Its public half is built into the site code. Never regenerate or lose it: a new key means every site needs a new image. Keep the backup at `%USERPROFILE%\.xenia\license_signing_key.txt` safe. Never add fields to the token payload that old sites would misread; bump `v` for incompatible changes.
|
||||||
|
|
||||||
|
**CL-8. The fee engine has two copies.** `cloud_backend/services/fees.py` is byte-identical to the site's `local_backend/services/fees.py` (the cloud charges what the manager's "test an order" shows). Change both, and `tests/fixtures/fee_cases.json` in both repos; the site's `tests/test_fees.py` compares them.
|
||||||
|
|
||||||
**CL-5. Frontend URLs are baked in at build time.**
|
**CL-5. Frontend URLs are baked in at build time.**
|
||||||
`VITE_CLOUD_URL` is a build arg, so changing it means rebuilding the image, not restarting it.
|
`VITE_CLOUD_URL` is a build arg, so changing it means rebuilding the image, not restarting it.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user