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

Commit e393dcb

Browse files
authored
Ability to set a custom description from yml file.
Makes it easier to read the setup in AWS console.
1 parent 51007a2 commit e393dcb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/serverless-component/serverless.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class NextjsComponent extends Component {
172172

173173
if (hasAPIPages) {
174174
const apiEdgeLambdaInput = {
175-
description: "API Lambda@Edge for Next CloudFront distribution",
175+
description: `${inputs.description} (API)` || "API Lambda@Edge for Next CloudFront distribution",
176176
handler: "index.handler",
177177
code: join(nextConfigPath, API_LAMBDA_CODE_DIR),
178178
role: {
@@ -214,7 +214,7 @@ class NextjsComponent extends Component {
214214
}
215215

216216
const defaultEdgeLambdaInput = {
217-
description: "Default Lambda@Edge for Next CloudFront distribution",
217+
description: inputs.description || "Default Lambda@Edge for Next CloudFront distribution",
218218
handler: "index.handler",
219219
code: join(nextConfigPath, DEFAULT_LAMBDA_CODE_DIR),
220220
role: {

0 commit comments

Comments
 (0)