Go to file
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
.vscode wip fix 2024-03-20 21:21:01 +07:00
app Replace msgpack encoding with actual zip file creation 2025-11-19 10:12:33 +00:00
pkgs Fix critical deployment errors 2025-11-19 09:28:54 +00:00
static fix: remove obsolete files and update service worker version 2025-03-16 14:27:16 +07:00
static-br-temp fix: remove obsolete files and update service worker version 2025-03-16 14:27:16 +07:00
static-temp fix: remove obsolete files and update service worker version 2025-03-16 14:27:16 +07:00
.gitignore Add source map files and large images to gitignore to reduce repo size 2025-08-17 15:34:11 +07:00
Dockerfile Fix workspace name conflict in Dockerfile 2025-11-19 09:23:30 +00:00
README.md init 2023-10-14 10:26:10 +07:00
bun.lockb fix 2025-02-24 19:19:12 +07:00
deploy.sh wip fix 2024-01-22 01:55:16 +07:00
dockerzip fix main 2024-12-18 19:03:27 +07:00
package.json Replace msgpack encoding with actual zip file creation 2025-11-19 10:12:33 +00:00
tsconfig.json wip fix 2024-03-20 21:21:01 +07:00
types.d.ts fix 2023-10-16 10:17:04 +07:00

README.md

prasi-deploy

To install dependencies:

bun install

To run:

bun run src/index.ts

This project was created using bun init in bun v1.0.3. Bun is a fast all-in-one JavaScript runtime.