[Content]: Vinxi app.config.ts needs to be configured for Cloudflare deployment
Đang mở
@amirhhashemi đang làm issue này rồi.
Từ ngày 8/3/2025.
planned
solid
- Ngôn ngữ chính
- MDX
- Star
- 292
- Fork
- 361
- Merge trung bình
- 7 giờ 51 phút
- Pull request đã merge (30 ngày)
- 1
Mô tả
📚 Subject area/topic
Cloudflare deployment
📋 Page(s) affected (or suggested, for new content)
/guides/deployment-options/cloudflare.mdx
📋 Description of content that is out-of-date or incorrect
- Vinxi
app.config.tsneeds to be configured to bundle for cloudflare:
server: {
preset: 'cloudflare-pages',
sourceMap: 'inline',
}
This will generate Cloudflare bundle in dist folder.
Serve the Cloudflare bundle locally with npx wrangler pages dev dist --port 3000
Note: source map is enabled to generate stack trace for runtime errors. This is useful for debugging compatibility issues between cloudflare/workerd and node. You can disable sourceMap to reduce deployment size at the cost of gibberish errors.
🖥️ Reproduction in StackBlitz (if reporting incorrect content or code samples)
No response
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Đánh giá
Issue này chưa được đánh giá.