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

docs(storage-resize-images): kit README's Multiple instances section fails in an installed project

Đang mở Phù hợp với người mới
#3,271 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
77/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
firebase, typescript
Lĩnh vực
documentation

Hướng nghiên cứu

Đọc các phần Configuration và Multiple instances trong README của kit storage-resize-images. Tài liệu hóa quy trình với functions:kits:install và functions:kits:uninstall --instance, bao gồm bố cục sau khi cài đặt và hành vi được mô tả trong issue, đồng thời giải thích rằng IS_ANIMATED= rỗng có nghĩa là false. Hoàn tất khi README mô tả rõ cách tạo và xóa các instance cũng như cài đặt animation.

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

Mô tả

kits type: bug

storage-resize-images kit. Priority: low. Following the README's multiple-instance steps fails in an installed project, and two behaviours are undocumented.

Problems
  • The "Multiple instances" firebase.json fails in a project created by firebase functions:kits:install:
    Error: Could not detect runtime for functions at <project dir>
    
    What works is the layout the install writes: source at function-kits/storage-resize-images/source with its sourcePackage and predeploy entries, and one config-<id> directory per instance, each with a full .env (including FUNCTION_DEFAULT_REGION). Running the install a second time adds an instance, but always with id storage-resize-images and an empty .env. The README mentions neither route.
  • Removing one instance isn't documented. firebase functions:kits:uninstall --instance <id> removed that instance's function, Cloud Run service, Eventarc trigger, service account, config directory and firebase.json entry, and left the other instance running.
  • An empty IS_ANIMATED= drops animation. It deploys without warning, and a 5-frame gif and webp both come out as one frame. The Configuration table lists the default as true. The extension can't be installed with an empty value, and by reading its parser would also treat one as false, so this is a docs gap.
Code
Resolution

Rewrite "Multiple instances" around functions:kits:install and functions:kits:uninstall --instance, and note that an empty IS_ANIMATED= means false.

Ngôn ngữ chính
TypeScript
Star
979
Fork
434
Merge trung bình
20 giờ 44 phút
Pull request đã merge (30 ngày)
17

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 firebase/extensions

Tất cả issue của firebase/extensions

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.