Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Problem when deploying static assets with `cf deploy`

Đang mở
#421 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
30/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
cli, cloud

Hướng nghiên cứu

The payload names no files or entry points, so start by reproducing: create a folder with only an index.html and run cf deploy to see where the setup stage fails for lack of package.json. Locate the setup code that assumes a package.json and the build step it hands off to. Done means a static project without package.json deploys, or the skip-build path the issue proposes works, with a test covering it.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Thank you Cloudflare for making such a great cli. when I try to deploy a static site using cf recently, I found that when a project does not have a package.json, you cannot use cf to manage this project. I noticed that using cf on a project must have a package.json. Otherwise, cf cannot complete the setup stage.

Image

This create a problem. Replacing wrangler with cf would become troublesome. You must create a package.json, install cf, wrangler or vite. Even if the project itself does not require package.json (like a pure static site). As for now, cf cannot replace wrangler completely.

Possible solutions:

  • Use wrangler as a direct dependency of cf cli
  • Provide a ways that can skip wrangler build stage
Ngôn ngữ chính
TypeScript
Star
960
Fork
62
Merge trung bình
23 giờ 17 phút
Pull request đã merge (30 ngày)
220

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của cloudflare/cf

Tất cả issue của cloudflare/cf

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.