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: {