diff --git a/src/config/geography.config.ts b/src/config/geography.config.ts index b385daa..693b2b4 100644 --- a/src/config/geography.config.ts +++ b/src/config/geography.config.ts @@ -12,8 +12,8 @@ export interface GeographyConfig extends Config { geocoderConsolidate: boolean; geocoderProximity: number; geocoderPopulationPrioritizerCoef: number; - geocoderProviders: number[]; - geocoderProvidersFallback: string; + geocoderProviders: string[]; + geocoderProvidersFallback: string[]; } export default registerAs('geography', () => ({ @@ -49,5 +49,7 @@ export default registerAs('geography', () => ({ geocoderProviders: process.env.GEOCODER_PROVIDERS ? process.env.GEOCODER_PROVIDERS?.split(',') : ['ADDOK,PELIAS_SEARCH,PELIAS_AUTOCOMPLETE'], - geocoderProvidersFallback: process.env.GEOCODER_PROVIDERS_FALLBACK ?? 'GMAPS', + geocoderProvidersFallback: process.env.GEOCODER_PROVIDERS_FALLBACK + ? process.env.GEOCODER_PROVIDERS_FALLBACK?.split(',') + : ['GMAPS'], }));