This commit is contained in:
2025-12-26 20:54:20 +01:00
parent 904feb41b8
commit 6389be4f0c
26 changed files with 745 additions and 195 deletions

34
apps/api/src/env.d.ts vendored Normal file
View File

@@ -0,0 +1,34 @@
declare global {
namespace NodeJS {
interface ProcessEnv {
NODE_ENV?: 'development' | 'production' | 'test';
// API runtime toggles
GRIDPILOT_API_PERSISTENCE?: 'postgres' | 'inmemory';
GRIDPILOT_API_BOOTSTRAP?: string;
GENERATE_OPENAPI?: string;
// Database (TypeORM)
DATABASE_URL?: string;
DATABASE_HOST?: string;
DATABASE_PORT?: string;
DATABASE_USER?: string;
DATABASE_PASSWORD?: string;
DATABASE_NAME?: string;
// Policy / operational mode
GRIDPILOT_POLICY_CACHE_MS?: string;
GRIDPILOT_POLICY_PATH?: string;
GRIDPILOT_OPERATIONAL_MODE?: string;
GRIDPILOT_FEATURES_JSON?: string;
GRIDPILOT_MAINTENANCE_ALLOW_VIEW?: string;
GRIDPILOT_MAINTENANCE_ALLOW_MUTATE?: string;
// Authorization
GRIDPILOT_AUTHZ_CACHE_MS?: string;
GRIDPILOT_USER_ROLES_JSON?: string;
}
}
}
export {};