Fix CDN assets not included in production mode

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2026-01-14 23:03:09 +00:00
parent 2489997e42
commit 2711c60284
2 changed files with 14 additions and 11 deletions

View File

@@ -5,7 +5,7 @@ APP_DEBUG=true
APP_URL=http://localhost APP_URL=http://localhost
# RSX Application Mode: development, debug, or production # RSX Application Mode: development, debug, or production
RSX_MODE=development RSX_MODE=production
LOG_CHANNEL=stack LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null LOG_DEPRECATIONS_CHANNEL=null

View File

@@ -535,16 +535,19 @@ class BundleCompiler
} }
// Handle class name includes (could be Asset Bundles with CDN assets) // Handle class name includes (could be Asset Bundles with CDN assets)
// Check manifest data directly since php_find_class throws if not found // Normalize FQCN to simple name for manifest lookup (manifest stores simple names)
if (is_string($include) && isset(Manifest::$data['data']['php_classes'][$include])) { if (is_string($include)) {
if (Manifest::php_is_subclass_of($include, 'Rsx_Asset_Bundle_Abstract')) { $simple_name = Manifest::_normalize_class_name($include);
$asset_def = $include::define(); if (isset(Manifest::$data['data']['php_classes'][$simple_name])) {
if (!empty($asset_def['cdn_assets'])) { if (Manifest::php_is_subclass_of($simple_name, 'Rsx_Asset_Bundle_Abstract')) {
if (!empty($asset_def['cdn_assets']['js'])) { $asset_def = $include::define();
$this->cdn_assets['js'] = array_merge($this->cdn_assets['js'], $asset_def['cdn_assets']['js']); if (!empty($asset_def['cdn_assets'])) {
} if (!empty($asset_def['cdn_assets']['js'])) {
if (!empty($asset_def['cdn_assets']['css'])) { $this->cdn_assets['js'] = array_merge($this->cdn_assets['js'], $asset_def['cdn_assets']['js']);
$this->cdn_assets['css'] = array_merge($this->cdn_assets['css'], $asset_def['cdn_assets']['css']); }
if (!empty($asset_def['cdn_assets']['css'])) {
$this->cdn_assets['css'] = array_merge($this->cdn_assets['css'], $asset_def['cdn_assets']['css']);
}
} }
} }
} }