prasi-bun/app/srv
riz 5f8f581b63 Replace msgpack encoding with actual zip file creation
- Completely rewrite /prod-zip endpoint to create real ZIP archives
- Add archiver dependency for proper ZIP file creation
- Create organized file structure in ZIP:
  * metadata.json - site configuration, layouts, pages, components
  * public/ - all public files
  * server/ - server build files
  * site/ - site build files (limited to 500 files to prevent enormous archives)
  * core/ - core application files
  * site-files.json - listing of included/skipped site files

Benefits:
- No more msgpack buffer overflow issues
- Creates actual usable ZIP files that can be extracted
- Much more practical for developers to work with
- Includes file structure and metadata
- Handles large sites by limiting build file inclusion
- Proper ZIP compression with archive headers
- Returns with appropriate Content-Type and Content-Disposition headers

This transforms the endpoint from returning complex binary data to providing actual site exports.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-19 10:12:33 +00:00
..
api Replace msgpack encoding with actual zip file creation 2025-11-19 10:12:33 +00:00
core fix 2025-03-16 14:19:18 +07:00
util fix 2024-08-14 22:42:56 +07:00
ws fix 2025-03-21 10:36:40 +07:00
global.d.ts wip fix yjs 2023-11-04 02:50:29 +07:00
global.ts fix 2024-07-17 09:19:33 +07:00
init.ts checkpoint 2024-05-07 00:27:29 +07:00
package.json fix 2024-12-11 13:10:37 +07:00
y.d.ts fix 2024-07-17 09:19:33 +07:00