mirror of
https://github.com/caprover/caprover
synced 2026-08-23 16:06:45 +00:00
Expose and protect legacy app name flag
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user