diff --git a/src/api-docs-function.ts b/src/api-docs-function.ts index d1ab89ea..d62ba2db 100644 --- a/src/api-docs-function.ts +++ b/src/api-docs-function.ts @@ -17,10 +17,10 @@ export class ApiDocsFunction extends lambda.Function { super(scope, id, { description: 'functions/src/api-docs.lambda.ts', ...props, - runtime: new lambda.Runtime('nodejs18.x', lambda.RuntimeFamily.NODEJS), + runtime: new lambda.Runtime('nodejs14.x', lambda.RuntimeFamily.NODEJS), handler: 'index.handler', code: lambda.Code.fromAsset(path.join(__dirname, '../assets/functions/src/api-docs.lambda')), }); this.addEnvironment('AWS_NODEJS_CONNECTION_REUSE_ENABLED', '1', { removeInEdge: true }); } -} +} \ No newline at end of file diff --git a/src/swagger-ui-function.ts b/src/swagger-ui-function.ts index 16c89e9a..3966e854 100644 --- a/src/swagger-ui-function.ts +++ b/src/swagger-ui-function.ts @@ -17,10 +17,10 @@ export class SwaggerUiFunction extends lambda.Function { super(scope, id, { description: 'functions/src/swagger-ui.lambda.ts', ...props, - runtime: new lambda.Runtime('nodejs18.x', lambda.RuntimeFamily.NODEJS), + runtime: new lambda.Runtime('nodejs14.x', lambda.RuntimeFamily.NODEJS), handler: 'index.handler', code: lambda.Code.fromAsset(path.join(__dirname, '../assets/functions/src/swagger-ui.lambda')), }); this.addEnvironment('AWS_NODEJS_CONNECTION_REUSE_ENABLED', '1', { removeInEdge: true }); } -} +} \ No newline at end of file