Commit Graph

112 Commits

Author SHA1 Message Date
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
1da20f4f49 update AWS Lambda README with API Gateway and content-type details. 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
f3a5e0ab32 fix README aws examples 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
91ddf2e913 cloudflare uses native decompression 2022-11-14 22:05:46 +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
79cb3ba96f update cloudflare README. 2022-11-13 18:55:59 +08:00
Brandon Liu
a645710410 Update README.md 2022-11-12 22:38:16 +08:00
Brandon Liu
79c87fb04a MIME type fixups for CDN compression 2022-11-11 20:21:22 +08:00
Brandon Liu
02fa1a5a67 cloudflare cache API 2022-11-05 11:35:33 +08:00
Brandon Liu
546cc93b01 update lambda README 2022-10-19 23:16:36 +08:00
Brandon Liu
6ed943d156 migrate Lambda implementation from python -> node [#80] 2022-10-19 23:01:53 +08:00
Brandon Liu
814761e152 remove unneeded build parts for lambda 2022-10-19 22:37:02 +08:00
Brandon Liu
543b8ef50f tile_path and error handling for lambda 2022-10-19 22:36:28 +08:00
Brandon Liu
9346762aa5 implement tile_path customization for cloudflare 2022-10-19 22:35:12 +08:00
Brandon Liu
da235cac22 cloudflare: clean up exports, correct status code 2022-10-19 19:36:06 +08:00
Brandon Liu
550c62e73e aws js: implement with hardcoded archive/tile path 2022-10-19 19:35:40 +08:00
Brandon Liu
46afb0252a aws js: create lambda zip 2022-10-19 17:27:29 +08:00
Brandon Liu
23af3d61cf add skeleton for AWS lambda Node implementation 2022-10-19 17:19:31 +08:00
Brandon Liu
d31a87f479 cloudflare: move dev packages to devDependencies 2022-10-19 15:51:02 +08:00
Brandon Liu
150252601e cloudflare workers: ext and mime type based on header [#58] 2022-10-19 10:01:11 +08:00
Brandon Liu
14c26d15fe add wrangler.toml [#80] 2022-10-19 09:36:12 +08:00
Brandon Liu
ded5333ca2 fix CI 2022-10-19 09:33:58 +08:00
Brandon Liu
2095413573 update cloudflare README [#80] 2022-10-19 09:31:49 +08:00
Brandon Liu
2033733643 cloudflare workers: wrangler output bundled JS 2022-10-19 09:19:59 +08:00
Brandon Liu
b62f8f3675 migrate Cloudflare Workers implementation to v3 [#80] 2022-10-19 09:15:09 +08:00
Brandon Liu
bf813a75e9 lambda: better error reporting for misconfiguration 2022-08-02 19:55:21 -07:00
Brandon Liu
5d841713ba Update README.md 2022-08-02 19:22:17 -07:00
Brandon Liu
5ea9927089 Update README.md 2022-07-30 11:45:10 +08:00
Brandon Liu
5787962dcf Update README.md 2022-07-30 11:39:42 +08:00
Michal Migurski
c4f5a8f8bc 204 responses also need CORS headers 2022-07-28 17:16:42 -07:00
Michal Migurski
354477ae02 Moved CORS headers up to include non-200 responses 2022-07-28 14:19:49 -07:00
Brandon Liu
0557f0e23c lambda function CORS controlled by environment variable 2022-07-28 12:37:50 +08:00
Michal Migurski
f944b6f1c9 Add CORS response header 2022-07-27 11:15:16 -07:00
Brandon Liu
c161c01322 AWS: special case API gateway to always return gzipped data to avoid binary/base64 unwanted behavior. 2022-07-27 00:37:12 +08:00
Brandon Liu
87c47a23fb Update README.md 2022-07-23 13:01:17 +08:00
Brandon Liu
02ac315df6 change API gateway path param to 'proxy' 2022-07-22 00:33:37 +08:00
Brandon Liu
e173ca76f6 Update README.md 2022-07-21 23:44:14 +08:00
Brandon Liu
ae986bbed5 lambda + API Gateway proper path integration; fix exceptions when archive missing 2022-07-21 23:41:44 +08:00
Brandon Liu
a6a0683947 detailed error handling for cloudflare worker 2022-07-21 18:52:05 +08:00
Brandon Liu
fc5e366bd2 cloudflare worker supports PMTILES_PATH 2022-07-21 18:52:05 +08:00
Brandon Liu
95b1f90a04 Revert "cloudflare worker: cache holds promises instead of buffers"
see errors related to "The script will never generate a response."

This reverts commit e0402ded7f.
2022-07-21 10:23:13 +08:00
Brandon Liu
1db1836365 Merge pull request #57 from protomaps/testsuite
improvements to CI test suite
2022-07-20 16:40:27 +08:00
Brandon Liu
be57f1f61d improvements to CI test suite 2022-07-20 16:38:36 +08:00
Brandon Liu
7db048b28c Create README.md 2022-07-20 14:49:34 +08:00
Brandon Liu
bde4a2f75c cloudflare worker: gzip compression support 2022-07-20 13:07:16 +08:00
Brandon Liu
e0402ded7f cloudflare worker: cache holds promises instead of buffers 2022-07-20 13:07:02 +08:00