This commit is contained in:
2025-05-10 00:26:03 +00:00
parent 95c5c1b90d
commit 200635e4bd
3 changed files with 181 additions and 25 deletions

View File

@ -62,14 +62,15 @@ export interface IDomainConfig {
}
/**
* Helper functions for type checking - now always assume route-based config
* Helper functions for type checking configuration types
*/
export function isLegacyOptions(options: any): boolean {
return false; // No longer supporting legacy options
return !!(options.domainConfigs && options.domainConfigs.length > 0 &&
(!options.routes || options.routes.length === 0));
}
export function isRoutedOptions(options: any): boolean {
return true; // Always assume routed options
return !!(options.routes && options.routes.length > 0);
}
/**