fix(dashboard): don't fail RDE apply when post-apply config refresh fails

Co-Authored-By: mantra <mantra@stack-auth.com>
This commit is contained in:
Devin AI 2026-07-14 03:11:42 +00:00
parent f47d81aeff
commit e11653022f

View File

@ -65,8 +65,15 @@ export function RdeApplyDialog({ open, adminApp, configUpdate, onSettle }: RdeAp
}
// "redirecting": the browser secret flow took over; treat as not-applied.
if (result === "updated") {
const project = await adminApp.getProject();
await project.refreshConfig();
// The apply already succeeded at this point; a failed cache refresh
// must not surface as a failed apply (which would prompt a retry of
// an already-applied mutation), so report it separately.
try {
const project = await adminApp.getProject();
await project.refreshConfig();
} catch (refreshError) {
captureError("config-update-rde-refresh", refreshError);
}
}
onSettle(result === "updated");
} catch (error) {