Skip to content

Commit

Permalink
chore: mitigate ci build intermitent failure
Browse files Browse the repository at this point in the history
  • Loading branch information
zxkane committed May 19, 2024
1 parent eb0a137 commit 6fff85c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/private/function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [],
},
Expand Down

0 comments on commit 6fff85c

Please sign in to comment.