in lambda/facia-responder/src/targeted-regions.ts [38:63]
export function generateTargetedRegionFronts(
src: facia.FeastCuration,
): facia.FeastCuration[] {
if (src.path === 'northern' || src.edition === 'feast-northern-hemisphere') {
//regionalise the northern front
const usOnlyFronts = filterFrontsFor(src.fronts, 'us', true);
const usOnly = {
...src,
path: 'us',
edition: 'feast-us-only',
fronts: usOnlyFronts,
};
const otherFronts = filterFrontsFor(src.fronts, 'us', false);
const restOfHemisphere = {
...src,
fronts: otherFronts,
};
return [restOfHemisphere, usOnly];
} else {
//don't regionalise others
return [src];
}
}