Use Celilo clientConfig publication and window.__MODULE_CONFIG__ for browser settings #77
Labels
No labels
area/auth
area/backend
area/ci
area/deploy
area/e2e
area/frontend
area/shared
blocked
good-first-issue
needs-info
priority/high
priority/low
priority/medium
type/bug
type/chore
type/docs
type/feature
type/tech-debt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
celilo/lunacycle#77
Loading…
Add table
Add a link
Reference in a new issue
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?
Lunacycle currently generates config.js itself in celilo/scripts/setup-web.ts (buildClientConfigJs), assigns window.LUNACYCLE_CONFIG, and uploads with the lower-level public_web API. apps/lunacycle-web/src/contexts/AuthContext.tsx reads that application-specific global; index.html loads /config.js.
Migrate to Celilo's standard public_web.publishStaticSite({ ..., clientConfig }) and window.MODULE_CONFIG configuration path. The helper writes public settings into a writable website overlay and uploads them with the built assets. This is a standardization task, not a claim that deployed Lunacycle is broken.
Preserve the existing runtime settings (AUTHENTIK_URL, CLIENT_ID, APPLICATION_SLUG, REDIRECT_URI), apex and www hosting, /api reverse proxies, browser login/callback behavior, and development defaults. Keep credentials out of browser configuration and stop mutating packaged build output to inject settings.
Before switching, verify compatibility between the Celilo version Lunacycle uses, its packaged dist/apps/lunacycle-web layout, and the helper's web-root/overlay contract. Do not assume changing the browser global alone completes the migration. Celilo issue celilo/celilo#1643 tracks the clientConfig/global naming mismatch; coordinate with it without inventing an unsupported name.
Acceptance:
Research was local source inspection, not a test of the deployed fleet.