budibase/packages/worker/src/features.ts

14 lines
331 B
TypeScript
Raw Normal View History

2023-08-17 18:44:59 +02:00
import { features } from "@budibase/backend-core"
import env from "./environment"
enum WorkerFeature {}
2023-08-17 18:44:59 +02:00
const featureList: WorkerFeature[] = features.processFeatureEnvVar(
Object.values(WorkerFeature),
env.WORKER_FEATURES
)
export function isFeatureEnabled(feature: WorkerFeature) {
return featureList.includes(feature)
}