working on making nojs workable

This commit is contained in:
Michael Freno
2025-12-22 15:10:13 -05:00
parent b640099fc5
commit 8f7b4cb6ea
12 changed files with 1342 additions and 24 deletions

View File

@@ -0,0 +1,24 @@
/**
* Feature flag system for conditional content
* Centralized configuration for feature toggles
*/
export interface FeatureFlags {
[key: string]: boolean;
}
export function getFeatureFlags(): FeatureFlags {
return {
// TODO: Add feature flags here
"beta-features": process.env.ENABLE_BETA_FEATURES === "true",
"new-editor": false,
"premium-content": true,
"seasonal-event": false,
"maintenance-mode": false
};
}
export function isFeatureEnabled(featureName: string): boolean {
const flags = getFeatureFlags();
return flags[featureName] === true;
}