env vars
This commit is contained in:
34
apps/api/src/env.d.ts
vendored
Normal file
34
apps/api/src/env.d.ts
vendored
Normal 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 {};
|
||||
Reference in New Issue
Block a user