Skip to content

Commit 2e4dbd5

Browse files
committed
Another yml tweak
1 parent 9120bdd commit 2e4dbd5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

serverless.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ provider:
7272
stage: ${opt:stage, 'dev'}
7373
profile: ${self:custom.stageConfig.${self:provider.stage}.profile}
7474
region: us-east-1
75+
apiGateway:
76+
websocketApiName: myWebSocketApi
77+
websocketApi:
78+
subprotocols:
79+
- auth # <-- fixed subprotocol name the browser requests
7580
logs:
7681
websocket: true
7782
environment:
@@ -333,6 +338,8 @@ functions:
333338

334339
auth:
335340
handler: api/sockets/authHandler.handler
341+
logRetentionInDays: 7
342+
timeout: 30
336343
events:
337344
- websocket:
338345
route: auth

0 commit comments

Comments
 (0)