Skip to content

refactor(flags): remove maintenance-mode check (operator-native now)#104

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

refactor(flags): remove maintenance-mode check (operator-native now)#104
coopbri wants to merge 1 commit into
masterfrom
refactor/remove-maintenance-middleware

Conversation

@coopbri

@coopbri coopbri commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Unleash was decommissioned and maintenance mode is now operator-native, so the Elysia maintenanceMiddleware (and its Unleash flag provider) is dead code. This removes it.

Changes

  • Delete src/lib/middleware/maintenance.ts and its .use(maintenanceMiddleware) wiring + import in src/server.ts
  • Remove the flags / createFlagProvider provider from src/lib/providers/index.ts (other providers remain, so @omnidotdev/providers stays a dependency)
  • Drop FLAGS_API_HOST / FLAGS_CLIENT_KEY from src/lib/config/env.config.ts and the "FLAGS not set" startup warning
  • Remove FLAGS_* from .env.local.template and .env.production

Verification

  • tsc --noEmit: pass
  • biome check: pass
  • knip: clean (no new issues vs baseline)
  • 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