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

Dependabot bumps to the Next.js app reach production with no preview

Đang mở
#606 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
1-2 ngày
Mức phù hợp với người mới
18/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ệ
github-actions, nextjs
Lĩnh vực
ci-cd, devops

Hướng nghiên cứu

Start with the Upload preview version step in preview.yaml and the npm-minor-patch Dependabot group that grouped next and @opennextjs/cloudflare. The issue leaves open whether a preview URL or a smoke check on / should gate merges, so a maintainer decision comes first. Done means Dependabot bumps to the Worker runtime packages are held for human review, and the chosen check is wired into CI.

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

Mô tả

bug DocOps

Defect

Dependabot pull requests cannot read CLOUDFLARE_API_TOKEN, so the Upload preview version step in preview.yaml always fails on them. The build step passes, the PR gets a green-enough signal, and the change merges without anyone ever opening a running copy of it. The next push to main promotes it to 100% of production traffic.

This took kagent.dev down today for roughly six hours.

Evidence

  • #599 bumped next 16.3.8 → 16.4.0 and @opennextjs/cloudflare 1.20.8 → 1.20.10 as part of the npm-minor-patch group.
  • Its preview run (38520354926) built successfully and failed only at Upload preview version. No preview URL was posted.
  • It deployed to production at 15:02 UTC on 2026-10-14. Every route the Worker handles then returned HTTP 500 with Cloudflare error code 1101 (uncaught exception in Worker code). /docs/ kept serving because Cloudflare returns those from the ASSETS binding without invoking the Worker.
  • The build and the deploy both succeeded. The failure was at request time only, which is exactly what a preview would have caught and what CI cannot.
  • #605 reverted the two packages and restored the site.

Note that the declared peer ranges accept this combination: @opennextjs/cloudflare 1.20.10 lists next: ">=15.5.27 <16 || >=16.3.8", and the locked wrangler 4.149.0 satisfies its ^4.148.0. Version constraints would not have blocked this.

Two candidate fixes

  1. Give the preview upload access to the token on dependabot branches, via a pull_request_target job or a separate workflow that uploads the version from a trusted context. This restores a preview URL on every PR, which is the actual missing signal.
  2. Separate the Worker runtime dependencies from the rest. next, @opennextjs/cloudflare, and wrangler are the three that can break production at request time. Pinning them out of the npm-minor-patch auto-group forces a human to open each bump deliberately.

These are not exclusive, and option 2 is the cheaper of the two.

Open question

Is a preview URL enough? A preview catches a crash on /, but only if somebody loads it. A smoke check that requests / against the uploaded preview version and fails the run on a non-200 would catch this class without relying on a reviewer clicking the link. Worth deciding before picking between the two fixes above.

Ngôn ngữ chính
TypeScript
Star
21
Fork
69
Merge trung bình
23 giờ 53 phút
Pull request đã merge (30 ngày)
83

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 kagent-dev/website

Tất cả issue của kagent-dev/website

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.