File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
dev-packages/e2e-tests/test-applications/aws-serverless/src Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ const LAMBDA_FUNCTIONS_WITH_LAYER_DIR = './src/lambda-functions-layer';
12
12
const LAMBDA_FUNCTIONS_WITH_NPM_DIR = './src/lambda-functions-npm' ;
13
13
const LAMBDA_FUNCTION_TIMEOUT = 10 ;
14
14
const LAYER_DIR = './node_modules/@sentry/aws-serverless/' ;
15
+ const DEFAULT_NODE_VERSION = '22' ;
15
16
export const SAM_PORT = 3001 ;
16
17
17
18
export class LocalLambdaStack extends Stack {
@@ -77,7 +78,7 @@ export class LocalLambdaStack extends Stack {
77
78
properties : {
78
79
CodeUri : path . join ( functionsDir , lambdaDir ) ,
79
80
Handler : 'index.handler' ,
80
- Runtime : `nodejs${ process . env . NODE_VERSION ?? '22' } .x` ,
81
+ Runtime : `nodejs${ process . env . NODE_VERSION ?? DEFAULT_NODE_VERSION } .x` ,
81
82
Timeout : LAMBDA_FUNCTION_TIMEOUT ,
82
83
Layers : addLayer ? [ { Ref : this . sentryLayer . logicalId } ] : undefined ,
83
84
Environment : {
You can’t perform that action at this time.
0 commit comments