mirror of
https://github.com/caprover/caprover
synced 2026-08-23 07:56:28 +00:00
Check legacy DNS alias before app registration
This commit is contained in:
@@ -40,6 +40,9 @@ export async function registerAppDefinition(
|
||||
// if project is not found, it will throw an error
|
||||
}
|
||||
|
||||
// Avoid creating a DNS alias that conflicts with an orphaned legacy service
|
||||
await serviceManager.ensureLegacyServiceNameAvailable(appName)
|
||||
|
||||
// Register the app definition
|
||||
await dataStore
|
||||
.getAppsDataStore()
|
||||
|
||||
Reference in New Issue
Block a user