Skip to content

Commit

Permalink
Merge pull request #61 from ServerlessLife/extension-name-for-node-ca…
Browse files Browse the repository at this point in the history
…uses-conflict

fix: Set extension name for node in the same way as it's done for python
  • Loading branch information
Lewenhaupt authored Jan 14, 2025
2 parents 8dea77a + 6097f3f commit 9e112eb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ServerlessSpy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,11 @@ export class ServerlessSpy extends Construct {
case lambda.Runtime.NODEJS_22_X.name:
layer =
layer ||
new lambda.LayerVersion(this, 'Extension', {
new lambda.LayerVersion(this,
`NodeExtension${runtime.name
.replace('node', '')
.replace('.', '_')}`,
{
compatibleRuntimes: [
lambda.Runtime.NODEJS_12_X,
lambda.Runtime.NODEJS_14_X,
Expand Down

0 comments on commit 9e112eb

Please sign in to comment.