Commit Graph

16 Commits

Author SHA1 Message Date
Brandon Liu
283b9f9d24 refactor AWS handler with modular handlerRaw 2022-12-21 16:30:56 +08:00
Brandon Liu
4e68e8eb13 Lambda: attach CORS headers for all 2xx-4xx responses 2022-11-24 13:06:09 +08:00
Brandon Liu
5b4737e066 serverless: fix cache keying with multiple archives. 2022-11-24 02:06:00 +08:00
Brandon Liu
f9a4848684 AWS Lambda: set 500ms timeouts on s3 requests to work around latency spikes. 2022-11-23 10:38:03 +08:00
Brandon Liu
f457724da1 pass HTTP metadata in S3/R2 Source impls 2022-11-22 14:43:15 +08:00
Brandon Liu
9a3f519207 pmtiles_path can have {name} multiple times [#97] 2022-11-22 10:47:31 +08:00
Brandon Liu
b01d90a1d0 AWS Lambda: add dev/staging CORS configuration variable. 2022-11-21 19:29:36 +08:00
Brandon Liu
533df1ba1c AWS Lambda: Special case API Gateway responses to recompress data, to work around base64/binary content issues. 2022-11-21 19:29:36 +08:00
Brandon Liu
1d74564ab4 allow both pbf and mvt extensions for vector tiles for now. In the future, pbf option will be removed. 2022-11-21 19:29:36 +08:00
Brandon Liu
e86d9b7e04 AWS Lambda: port to node 18 and aws sdk v3 2022-11-21 19:29:36 +08:00
Brandon Liu
652666288b cf set cache size explicitly 2022-11-21 19:29:36 +08:00
Brandon Liu
9fd1d39ab5 aws/cf depend on js/index instead of dist 2022-11-21 19:29:10 +08:00
Brandon Liu
4f0292ff91 lambda: native decompression, 256MB LRU cache 2022-11-21 19:29:10 +08:00
Brandon Liu
6d866e3507 AWS Lambda: mime types and extensions; remove CORS config from code 2022-11-14 14:39:58 +08:00
Brandon Liu
79c87fb04a MIME type fixups for CDN compression 2022-11-11 20:21:22 +08:00
Brandon Liu
6ed943d156 migrate Lambda implementation from python -> node [#80] 2022-10-19 23:01:53 +08:00