27 lines
648 B
TypeScript
27 lines
648 B
TypeScript
/**
|
|
* Feature Flags Server Module
|
|
*
|
|
* This file is server-only (.server.ts convention in React Router).
|
|
* It loads feature flags from environment variables.
|
|
*
|
|
* For client-side access, use `useFeatureFlags()` hook from `~/context/feature-flags`.
|
|
*/
|
|
|
|
import type { FeatureFlags } from "~/context/feature-flags";
|
|
|
|
export type { FeatureFlags } from "~/context/feature-flags";
|
|
|
|
/**
|
|
* Load feature flags from environment variables.
|
|
*/
|
|
export function loadFeatureFlags(): FeatureFlags {
|
|
return {};
|
|
}
|
|
|
|
/**
|
|
* Returns extra parameters for inference calls.
|
|
*/
|
|
export function getExtraInferenceOptions(): Record<string, unknown> {
|
|
return {};
|
|
}
|