BaseRuntimeConfig: {
    API_DEV_SERVER_PORT: number;
    DEBUG: boolean;
    MONGO_DIRECT_CONNECTION?: "true" | "false";
    MONGO_REPLICA_SET?: "rs0";
    MONGO_RETRY_WRITES?: "true" | "false";
    MONGO_URI: string;
    MONGO_WRITE_CONCERN?: "majority";
    NODE_ENV: "development" | "production" | "test";
    SECRET_KEY: string;
    VERBOSE: boolean;
}

Type representing the base runtime configuration.

Users can extend the $BaseRuntimeConfig schema in their application. Any extended schema must have, as it's output, a type that is assignable to this type.

Type declaration

  • API_DEV_SERVER_PORT: number
  • DEBUG: boolean
  • OptionalMONGO_DIRECT_CONNECTION?: "true" | "false"
  • OptionalMONGO_REPLICA_SET?: "rs0"
  • OptionalMONGO_RETRY_WRITES?: "true" | "false"
  • MONGO_URI: string
  • OptionalMONGO_WRITE_CONCERN?: "majority"
  • NODE_ENV: "development" | "production" | "test"
  • SECRET_KEY: string
  • VERBOSE: boolean