You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
export function validateConfig(config: any, requiredKeys: string[]): configValidationResult {
const missingKeys: string[] = []
requiredKeys.forEach(key => {
if (!config[key]) {
missingKeys.push(key)
}
})
if (missingKeys.length) {
const error = createError({
statusCode: 500,
message: `Missing config keys: ${missingKeys.join(', ')}. Please pass the required parameters either as env variables or as part of the config parameter.`