open-next-cdk
Version:
Deploy a NextJS app using OpenNext packaging to serverless AWS using CDK
11 lines (10 loc) • 424 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.emitWarningIfUnsupportedVersion = void 0;
let warningEmitted = false;
const emitWarningIfUnsupportedVersion = (version) => {
if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 14) {
warningEmitted = true;
}
};
exports.emitWarningIfUnsupportedVersion = emitWarningIfUnsupportedVersion;