From f04836c597c58d6038cccc2b49d95d0c8c437192 Mon Sep 17 00:00:00 2001 From: Ben Stickley <35735118+bestickley@users.noreply.github.com> Date: Fri, 8 Dec 2023 14:32:44 -0500 Subject: [PATCH] feat: update edge lambda from node 18 to 20 (#179) --- src/NextjsDistribution.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NextjsDistribution.ts b/src/NextjsDistribution.ts index 28dfbfb7..e7bb1025 100644 --- a/src/NextjsDistribution.ts +++ b/src/NextjsDistribution.ts @@ -247,7 +247,7 @@ export class NextjsDistribution extends Construct { private createEdgeLambda(): cloudfront.EdgeLambda { const signFnUrlDir = path.resolve(__dirname, '..', 'assets', 'lambdas', 'sign-fn-url'); const originRequestEdgeFn = new cloudfront.experimental.EdgeFunction(this, 'EdgeFn', { - runtime: Runtime.NODEJS_18_X, + runtime: Runtime.NODEJS_20_X, handler: 'index.handler', code: lambda.Code.fromAsset(signFnUrlDir), currentVersionOptions: {