Skip to content

Commit d414039

Browse files
authored
Update README.md
1 parent 47f1408 commit d414039

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ app: my-app # (optional) serverless dashboard app. default
8585
stage: dev # (optional) serverless dashboard stage. default is dev.
8686

8787
inputs:
88-
src: ./src # (optional) path to the source folder. default is a hello world function.
88+
src: ./src # (optional) path to the source folder, relative to the cwd. default is a hello world function.
8989
name: my-lambda # (optional) the name of lambda function. default is an auto-generated name based on the instance name and stage above.
90-
handler: index.handler # (optional) lambda handler. default is handler.handler.
90+
handler: index.handler # (optional) lambda handler relative to the src input above. default is handler.handler.
9191
memory: 512 # (optional) lambda memory size.
9292
timeout: 10 # (optional) lambda timeout.
9393
description: My Lambda. # (optional) lambda description.
@@ -108,6 +108,8 @@ inputs:
108108
region: us-east-2 # (optional) aws region to deploy to. default is us-east-1.
109109
```
110110
111+
**Note:** Unlike the `src` input, the `handler` input is relative to the `src` input, not to the current working directory.
112+
111113
Once you've chosen your configuration, run `serverless deploy` again (or simply just `serverless`) to deploy your changes.
112114

113115
### 5. Develop

0 commit comments

Comments
 (0)