prasi-api/pkgs/utils
riz 6c452af796 Update prod-zip usage to work with new ZIP file format
- Replace msgpack/gzip download with ZIP file download
- Add loadFromZip() method to extract and process ZIP deployments
- Maintain backward compatibility with legacy msgpack/gzip deployments
- Add proper file loading with binary/text detection
- Update has_gz() to check for both .zip and .gz files
- Clean up extracted directories after processing

New ZIP deployment workflow:
1. Download ZIP file instead of gzipped msgpack data
2. Extract ZIP to temporary directory
3. Load metadata.json for site configuration
4. Load files from public/, server/, site/, core/ directories
5. Set up deploy content structure compatible with existing code
6. Clean up temporary files

Benefits:
- No more buffer overflow issues with large deployments
- Better file organization in ZIP structure
- Easier debugging with extractable files
- Maintains full compatibility with existing deployment system
- Supports both new ZIP and legacy msgpack formats

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-19 22:13:32 +00:00
..
db fix rel many 2024-07-25 19:05:21 +07:00
br-load.ts fix 2024-07-06 18:31:19 +07:00
cache.ts fixing hex 2024-07-29 17:58:55 +07:00
config.ts wip fix 2024-01-23 23:03:13 +07:00
deploy.ts Update prod-zip usage to work with new ZIP file format 2025-11-19 22:13:32 +00:00
dev-watcher.ts wip fix 2024-01-23 23:03:13 +07:00
diff.ts wip fix 2024-02-13 20:32:27 +07:00
dir.ts wip fix 2024-01-23 23:03:13 +07:00
ensure.ts wip fix 2024-01-25 13:32:34 +07:00
get.ts fix rels 2024-07-25 16:19:52 +07:00
global.ts fix record 2024-12-11 16:38:22 +07:00
gzip.ts wip fix 2024-02-10 15:58:04 +07:00
kv.ts fix 2024-07-19 20:59:02 +07:00
logger.ts wip fix 2024-01-23 23:03:13 +07:00
parse-env.ts fix env 2024-06-26 15:03:13 +07:00
prisma.ts fix database connection error handling to prevent app crashes 2025-09-10 09:07:03 +07:00
prod-index.ts undo csp 2024-11-14 22:13:07 +07:00
query.ts fix database connection error handling to prevent app crashes 2025-09-10 09:07:03 +07:00
restart.ts fix subprocess 2024-08-15 21:42:34 +07:00
size.ts wip fix 2024-02-14 21:40:12 +07:00
wait-until.ts wip fix 2024-01-23 23:03:13 +07:00