Change serverless to typescript.

This commit is contained in:
Patrick Fic
2026-01-13 14:45:31 -08:00
parent ea4131102c
commit 319e2e37df
16 changed files with 4660 additions and 162 deletions

View File

@@ -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