From 139032308b7a75809d50fa57ce44a8937baf97dd Mon Sep 17 00:00:00 2001 From: Kasra Bigdeli Date: Sun, 19 Jul 2026 22:06:16 -0700 Subject: [PATCH] Expose and protect legacy app name flag --- src/datastore/AppsDataStore.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/datastore/AppsDataStore.ts b/src/datastore/AppsDataStore.ts index 211e51e..6f84e7c 100644 --- a/src/datastore/AppsDataStore.ts +++ b/src/datastore/AppsDataStore.ts @@ -94,6 +94,18 @@ class AppsDataStore { ) } + const existingApp = self.data.get( + `${APP_DEFINITIONS}.${appName}` + ) as IAppDefSaved | undefined + + if (existingApp) { + if (existingApp.isLegacyAppName === undefined) { + delete app.isLegacyAppName + } else { + app.isLegacyAppName = existingApp.isLegacyAppName + } + } + if (app.forceSsl) { let hasAtLeastOneSslDomain = app.hasDefaultSubDomainSsl const customDomainArray = app.customDomain