Skip to content

Commit

Permalink
feat: add support for region params and id
Browse files Browse the repository at this point in the history
  • Loading branch information
ohoareau committed Sep 2, 2024
1 parent 9094839 commit 8e3f14f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/utils/generateEnvLayerFromFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ export const generateEnvLayerFromFile = async (
layerConfig.regions || {};

const mappedRegions = Object.entries(
regions ||
({[defaultRegion]: {}} as Record<string, layer_region_config>),
regions && Object.keys(regions).length
? regions
: ({[defaultRegion]: {}} as Record<string, layer_region_config>),
).map(
([rCode, r]: [string, layer_region_config]) =>
[
Expand Down

0 comments on commit 8e3f14f

Please sign in to comment.