Regression in StaticSitesClient 20260720.247.2: Next.js hybrid deployments fail with "Failed to deploy the Azure Functions" (worked on 20260714.240.1)

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

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
48/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ệ
azure, github-actions, next.js, node.js
Lĩnh vực
backend, cloud, devops

Hướng nghiên cứu

Bắt đầu với Azure/static-web-apps-deploy@v1 và so sánh nhật ký triển khai cho các phiên bản client 20260714.240.1 và 20260720.247.2, bao gồm các deployment IDs hiện có. Kiểm tra việc đóng gói lại Next.js, việc provision Azure Functions và đường dẫn staticwebapp.config.json; hoàn thành có nghĩa là xác định regression và ghi lại liệu việc ghim phiên bản client có được hỗ trợ hay không.

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

Mô tả

Summary

Since the StaticSitesClient rolled from 20260714.240.1 to 20260720.247.2 (~2026-07-21 → 2026-07-27 in our deployments), every deployment of our Next.js hybrid app fails with:

Status: Failed. Time: 33.0460794(s)
Deployment Failed :(
Deployment Failure Reason: Failed to deploy the Azure Functions.

The failure is server-side, after a successful artifact upload ("Finished Upload. Polling on deployment." → Failed at ~33s), on two independent Static Web Apps resources (staging + production, separate subscriptions). The identical application code deployed successfully on 2026-07-21 with client 20260714.240.1.

Evidence it is not application-side

We reproduced the failure 5 times across every variable we control:

Attempt App state Result
2026-07-21 Next 16.2.6 ✅ success (client 20260714.240.1)
2026-07-27 #1 Next 16.2.12 ❌ (client 20260720.247.2)
2026-07-27 #2 Next 16.2.12, sharp/@img excluded via outputFileTracingExcludes (rules out bundle size) ❌
2026-07-27 #3 Reverted to Next 16.2.6 — near-identical to the last green deploy ❌
2026-07-27 #4 Next 16.2.6 + staticwebapp.config.json platform.apiRuntime: node:20 ❌

The only delta between the last success and the failures is the deployment client version printed in the action logs.

Environment

  • GitHub Actions, Azure/static-web-apps-deploy@v1, prebuilt app (skip_app_build: true), Next.js hybrid (App Router, ISR + server rendering), output .next
  • Node warning in logs: "Defaulting to version: 22" (identical in the last successful run)
  • Log excerpt (identical shape in all failures): Detected the following framework: Next.js → Repackaged Next.js app to deploy on the backend → Zipping Api Artifacts → upload OK → poll → Failed to deploy the Azure Functions

Ask

  1. Was there a change in the Next.js repackaging / functions provisioning path in 20260720.247.2?
  2. Is there a supported way to pin the deployment client version in the GitHub Action as a mitigation?

Deployment IDs available on request (e.g. 32541b25-d739-419a-8fcc-62ddaadeb7a3, 2026-07-27). Happy to provide full logs privately.

Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
347
Fork
68
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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 Azure/static-web-apps

Tất cả issue của Azure/static-web-apps

Issue tương tự

Thêm issue về Backend & API Design

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.