Skip to content

Commit

Permalink
feat: update lambda to Node.js 20 (#170)
Browse files Browse the repository at this point in the history
* feat: update lambda to Node.js 20

* chore: self mutation

Signed-off-by: github-actions <[email protected]>

---------

Signed-off-by: github-actions <[email protected]>
Co-authored-by: github-actions <[email protected]>
  • Loading branch information
bestickley and github-actions authored Nov 17, 2023
1 parent 4f141e6 commit 48ab3b6
Show file tree
Hide file tree
Showing 7 changed files with 1,365 additions and 1,107 deletions.
4 changes: 2 additions & 2 deletions .projen/deps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const project = new awscdk.AwsCdkConstructLibrary({
gitignore: ['.idea'],
// dependency config
jsiiVersion: '~5.0.0',
cdkVersion: '2.99.1',
cdkVersion: '2.110.0',
bundledDeps: ['esbuild'] /* Runtime dependencies of this module. */,
devDeps: [
'@aws-crypto/sha256-js',
Expand Down
15 changes: 15 additions & 0 deletions API.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion examples/app-router/src/stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ export class AppRouterStack extends Stack {

const nextjs = new Nextjs(this, 'nextjs', {
nextjsPath: '../../open-next/examples/app-router',
// skipBuild: true,
buildCommand: 'npx open-next@^2 build',
skipBuild: true,
});

new CfnOutput(this, "CloudFrontDistributionDomain", {
Expand Down
4 changes: 2 additions & 2 deletions package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/utils/common-lambda-props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function getCommonFunctionProps(scope: Construct): Omit<FunctionProps, 'c
* @see {@link https://dev.to/dashbird/4-tips-for-aws-lambda-optimization-for-production-3if1}
*/
memorySize: 1536,
runtime: Runtime.NODEJS_18_X,
runtime: Runtime.NODEJS_20_X,
timeout: Duration.seconds(10),
// prevents "Resolution error: Cannot use resource in a cross-environment
// fashion, the resource's physical name must be explicit set or use
Expand Down
Loading

0 comments on commit 48ab3b6

Please sign in to comment.