@faable/faable 1.14.0 → 1.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -80,7 +80,16 @@ const deploy = {
|
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
catch (error) {
|
|
83
|
-
|
|
83
|
+
// A free-plan quota rejection (429 deployment_quota_exceeded) is not a
|
|
84
|
+
// build failure — the build itself succeeded. Skip the failure report
|
|
85
|
+
// so the app doesn't show a red build; the API's message (with the
|
|
86
|
+
// upgrade hint) still reaches the user via the error printer.
|
|
87
|
+
const isQuotaRejection = error?.isFaableApiError &&
|
|
88
|
+
error?.response?.status === 429 &&
|
|
89
|
+
error?.response?.data?.code === 'deployment_quota_exceeded';
|
|
90
|
+
if (!isQuotaRejection) {
|
|
91
|
+
await report_build_failure(api, { app, workdir });
|
|
92
|
+
}
|
|
84
93
|
throw error;
|
|
85
94
|
}
|
|
86
95
|
// Attach the build output to the deployment (best-effort).
|