Change serverless to typescript.
This commit is contained in:
@@ -60,9 +60,19 @@ provider:
|
||||
httpApi: # This creates a cheaper, faster "HTTP API" Gateway
|
||||
cors: true # Automatically configures CORS
|
||||
|
||||
build:
|
||||
esbuild:
|
||||
bundle: true
|
||||
minify: false
|
||||
sourcemap: true
|
||||
exclude:
|
||||
- '@aws-sdk/*'
|
||||
target: node22
|
||||
platform: node
|
||||
|
||||
functions:
|
||||
vehicleType:
|
||||
handler: src/handlers/vehicleTypes.handler
|
||||
handler: src/handlers/vehicleType.handler
|
||||
events:
|
||||
- httpApi:
|
||||
path: /vehicleType
|
||||
|
||||
Reference in New Issue
Block a user