From 6fff85ce5fc823931f2e9db718ebc5d3f22e0139 Mon Sep 17 00:00:00 2001 From: Mengxin Zhu <843303+zxkane@users.noreply.github.com> Date: Sun, 19 May 2024 12:54:52 +0800 Subject: [PATCH] chore: mitigate ci build intermitent failure --- src/private/function.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/private/function.ts b/src/private/function.ts index 6bd7d0b663..b6e6cd1851 100644 --- a/src/private/function.ts +++ b/src/private/function.ts @@ -34,7 +34,15 @@ export class SolutionNodejsFunction extends NodejsFunction { ...props, bundling: props?.bundling ? { ...props.bundling, + forceDockerBundling: true, externalModules: props.bundling.externalModules?.filter(p => p === '@aws-sdk/*') ?? [], + environment: { + NODE_ENV: 'production', + }, + esbuildArgs: { // Pass additional arguments to esbuild + '--log-limit': '3000', + '--log-level': 'debug', + }, } : { externalModules: [], },