- 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> |
||
|---|---|---|
| .vscode | ||
| app | ||
| pkgs | ||
| static | ||
| static-br-temp | ||
| static-temp | ||
| .gitignore | ||
| Dockerfile | ||
| README.md | ||
| bun.lockb | ||
| deploy.sh | ||
| dockerzip | ||
| package.json | ||
| tsconfig.json | ||
| types.d.ts | ||
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.