Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit b998972

Browse files
committed
service name and actually set stage name in layer name
1 parent 4733483 commit b998972

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/layer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function createLayers() {
2828
this.serverless.service.layers['pythonRequirements'] = Object.assign(
2929
{
3030
artifact: path.join('.serverless', 'pythonRequirements.zip'),
31-
name: `${this.serverless.service.stage}-python-requirements`,
31+
name: `${this.serverless.service.service}-${this.serverless.providers.aws.getStage()}-python-requirements`,
3232
description:
3333
'Python requirements generated by serverless-python-requirements.',
3434
compatibleRuntimes: [this.serverless.service.provider.runtime]

0 commit comments

Comments
 (0)