UNPKG

open-next-cdk

Version:

Deploy a NextJS app using OpenNext packaging to serverless AWS using CDK

6 lines (5 loc) 388 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getResolvedPartition = void 0; const getResolvedPartition = (region, { partitionHash }) => { var _a; return (_a = Object.keys(partitionHash || {}).find((key) => partitionHash[key].regions.includes(region))) !== null && _a !== void 0 ? _a : "aws"; }; exports.getResolvedPartition = getResolvedPartition;