Skip to content

Commit

Permalink
revert: aws lambda URLs which currently not support by serverless-htt…
Browse files Browse the repository at this point in the history
…p plugin
  • Loading branch information
ixartz committed Apr 28, 2022
1 parent eed51d7 commit c060cdf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Developer experience first:
- 🚓 Lint git commit with Commitlint
- 🦺 Testing with Jest
- 🗂 VSCode configuration: Debug, Settings, Tasks and extension for ESLint, Prettier, TypeScript, Jest
-Lambda Function URLs for cost optimization (No API gateway or HTTP API)
-HTTP Api instead of API gateway for cost optimization
- 💨 Live reload

### Philosophy
Expand Down
12 changes: 9 additions & 3 deletions serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,20 @@ provider:
memorySize: 512
timeout: 10
logRetentionInDays: 90
logs:
httpApi: true
httpApi:
# metrics: true # Enable if you need
cors: true

functions:
app:
handler: src/handler.handler
url:
# Allow CORS for all requests from any origin
cors: true
# reservedConcurrency: 100
events:
- httpApi:
path: '/{proxy+}'
method: '*'

package:
individually: true
Expand Down

0 comments on commit c060cdf

Please sign in to comment.