From 8e0dc592fca3dbb8f55b19cb351e3a0078dbeca8 Mon Sep 17 00:00:00 2001 From: Adam Hall Date: Fri, 8 Mar 2024 11:07:10 +1030 Subject: [PATCH 1/2] Update path remap to node 18 --- packages/static-hosting/lib/arbitrary-path-remap.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/static-hosting/lib/arbitrary-path-remap.ts b/packages/static-hosting/lib/arbitrary-path-remap.ts index d02fc255..cb9c221c 100644 --- a/packages/static-hosting/lib/arbitrary-path-remap.ts +++ b/packages/static-hosting/lib/arbitrary-path-remap.ts @@ -20,7 +20,7 @@ export class ArbitraryPathRemapFunction extends Construct { { code: Bundling.bundle({ entry: `${__dirname}/handlers/remap.ts`, - runtime: Runtime.NODEJS_14_X, + runtime: Runtime.NODEJS_18_X, sourceMap: true, projectRoot: `${__dirname}/handlers/`, depsLockFilePath: `${__dirname}/handlers/package-lock.json`, From 30a0854a6d4ec2be13810cad565a149eff4e638c Mon Sep 17 00:00:00 2001 From: Adam Hall Date: Fri, 8 Mar 2024 11:08:46 +1030 Subject: [PATCH 2/2] Switch to node 16 as 18 is not supported by this cdk version --- packages/static-hosting/lib/arbitrary-path-remap.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/static-hosting/lib/arbitrary-path-remap.ts b/packages/static-hosting/lib/arbitrary-path-remap.ts index cb9c221c..47aa7244 100644 --- a/packages/static-hosting/lib/arbitrary-path-remap.ts +++ b/packages/static-hosting/lib/arbitrary-path-remap.ts @@ -20,7 +20,7 @@ export class ArbitraryPathRemapFunction extends Construct { { code: Bundling.bundle({ entry: `${__dirname}/handlers/remap.ts`, - runtime: Runtime.NODEJS_18_X, + runtime: Runtime.NODEJS_16_X, sourceMap: true, projectRoot: `${__dirname}/handlers/`, depsLockFilePath: `${__dirname}/handlers/package-lock.json`,