Skip to content

refactor(flags): remove app-side maintenance check (operator-native now)#2

Open
coopbri wants to merge 1 commit into
masterfrom
refactor/remove-app-maintenance-check
Open

refactor(flags): remove app-side maintenance check (operator-native now)#2
coopbri wants to merge 1 commit into
masterfrom
refactor/remove-app-maintenance-check

Conversation

@coopbri

@coopbri coopbri commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Description

Unleash was decommissioned and maintenance mode is now operator-native (handled at the edge by the Fractal operator via expose.maintenanceMode). The app-side maintenance check and Fractal Flags provider wiring is dead code, so this removes it. Mirrors the validated crystal-app removal.

Changes

  • Deleted src/server/functions/flags.ts (flag-only: createFlagProvider singleton + fetchMaintenanceMode server fn)
  • src/lib/config/env.config.ts: removed FLAGS_API_HOST / FLAGS_CLIENT_KEY exports and their startup warnings
  • src/router.tsx: dropped isMaintenanceMode: false from router context
  • src/routes/__root.tsx: removed fetchMaintenanceMode wiring, isMaintenanceMode from router context type + beforeLoad, the MaintenancePage component, and its early-return in RootComponent

@omnidotdev/providers stays a dependency (still used by auth/billing/react/events).

Verification

  • tsc --noEmit: pass
  • biome check: touched files clean (3 pre-existing errors in unrelated files remain)
  • knip: clean
  • NODE_ENV=production bun run build: pass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant