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:
@@ -5,7 +5,7 @@ APP_DEBUG=true
|
||||
APP_URL=http://localhost
|
||||
|
||||
# RSX Application Mode: development, debug, or production
|
||||
RSX_MODE=development
|
||||
RSX_MODE=production
|
||||
|
||||
LOG_CHANNEL=stack
|
||||
LOG_DEPRECATIONS_CHANNEL=null
|
||||
|
||||
@@ -535,9 +535,11 @@ class BundleCompiler
|
||||
}
|
||||
|
||||
// Handle class name includes (could be Asset Bundles with CDN assets)
|
||||
// Check manifest data directly since php_find_class throws if not found
|
||||
if (is_string($include) && isset(Manifest::$data['data']['php_classes'][$include])) {
|
||||
if (Manifest::php_is_subclass_of($include, 'Rsx_Asset_Bundle_Abstract')) {
|
||||
// Normalize FQCN to simple name for manifest lookup (manifest stores simple names)
|
||||
if (is_string($include)) {
|
||||
$simple_name = Manifest::_normalize_class_name($include);
|
||||
if (isset(Manifest::$data['data']['php_classes'][$simple_name])) {
|
||||
if (Manifest::php_is_subclass_of($simple_name, 'Rsx_Asset_Bundle_Abstract')) {
|
||||
$asset_def = $include::define();
|
||||
if (!empty($asset_def['cdn_assets'])) {
|
||||
if (!empty($asset_def['cdn_assets']['js'])) {
|
||||
@@ -550,6 +552,7 @@ class BundleCompiler
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Process required bundles (jquery, lodash, jqhtml)
|
||||
|
||||
Reference in New Issue
Block a user