From b7ec577efd3ec7f97164ebf1f5ca520075d5ed5d Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Tue, 12 Dec 2023 16:57:41 +0100 Subject: [PATCH] Add redirect --- packages/builder/src/api.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/builder/src/api.js b/packages/builder/src/api.js index 37894d9bbc..e93dae65f8 100644 --- a/packages/builder/src/api.js +++ b/packages/builder/src/api.js @@ -45,4 +45,9 @@ export const API = createAPIClient({ } } }, + onMigrationDetected: appId => { + window.location = `/builder/updating/${appId}?returnUrl=${encodeURI( + window.location + )}` + }, })