diff --git a/src/Core/Helpers/Cdn.php b/src/Core/Helpers/Cdn.php index 98cc60d..ad4d8b6 100644 --- a/src/Core/Helpers/Cdn.php +++ b/src/Core/Helpers/Cdn.php @@ -52,14 +52,12 @@ class Cdn /** * Check if CDN mode is enabled. * - * CDN is considered enabled if: - * - External CDN URL is configured, OR - * - CDN subdomain is configured (default) + * Requires explicit CDN_ENABLED=true in .env. + * Without it, all assets use the standard asset() helper. */ public static function isEnabled(): bool { - return config('cdn.enabled', false) - || config('core.cdn.subdomain'); + return (bool) config('cdn.enabled', false); } /**