@@ -174,13 +174,12 @@ const Optimizations = ({ }) => {
174
174
setLoadingText ( 'Collecting active plugins...' )
175
175
const api = new ApiService ( options ) ;
176
176
const plugins = await api . getActivePlugins ( ) ;
177
- const server_data = await api . post ( 'titan_checklist_cron' ) ;
177
+ const server_data = await api . post ( 'rapidload_server_info' ) ;
178
+
178
179
179
180
const _diagnostics = Object . entries ( diagnostics ) . map ( ( [ key , value ] ) => value )
180
181
// console.log(_diagnostics)
181
182
182
- console . log ( serverDetails )
183
-
184
183
const input = {
185
184
settings : settings . map ( ( { status, ...rest } ) => ( {
186
185
...rest ,
@@ -215,7 +214,15 @@ const Optimizations = ({ }) => {
215
214
real_user_diagnostics : _diagnostics . find ( ( d : any ) => d . name === s . name ) ,
216
215
value : s . name === "Cache Policy" ? "one_time_action" : ( s . inputs [ 0 ] ?. value || false )
217
216
} ) ) . filter ( ( s : any ) => s . settings_diagnostics || s . real_user_diagnostics ) ,
218
- server_details : server_data
217
+ server_details : server_data . data ? {
218
+ ...server_data . data ,
219
+ headers : {
220
+ ...server_data . data . headers ,
221
+ 'x-cache-handler' : undefined ,
222
+ 'x-cache-status' : undefined ,
223
+ server : undefined ,
224
+ }
225
+ } : null ,
219
226
}
220
227
221
228
setLoadingText ( 'Hermes AI is analyzing your page...' )
@@ -443,7 +450,7 @@ const Optimizations = ({ }) => {
443
450
setPageSpeedProgress ( prev => Math . min ( prev + 5 , 90 ) ) ;
444
451
} , 2000 ) ;
445
452
446
- await dispatch ( fetchReport ( options , headerUrl ? headerUrl : options . optimizer_url , true ) ) ;
453
+ // await dispatch(fetchReport(options, headerUrl ? headerUrl : options.optimizer_url, true));
447
454
448
455
clearInterval ( progressInterval ) ;
449
456
setPageSpeedProgress ( 100 ) ;
@@ -491,7 +498,7 @@ const Optimizations = ({ }) => {
491
498
transition = { { duration : 0.2 , delay : 0.05 } }
492
499
className = 'bg-[#F0F0F1] dark:bg-brand-800'
493
500
>
494
-
501
+
495
502
496
503
< div className = 'px-6 py-6 bg-white rounded-3xl' >
497
504
< div className = "flex gap-4 w-full items-start" >
@@ -605,8 +612,8 @@ const Optimizations = ({ }) => {
605
612
</ button >
606
613
</ div >
607
614
< iframe
608
- // src={showIframe ? `${optimizerUrl}/?rapidload_preview` : ''}
609
- src = { showIframe ? 'http://rapidload.local/?rapidload_preview' : '' }
615
+ // src={showIframe ? `${optimizerUrl}/?rapidload_preview` : ''}
616
+ src = { showIframe ? 'http://rapidload.local/?rapidload_preview' : '' }
610
617
className = "w-full h-[600px] border-0"
611
618
title = "Optimization Test"
612
619
/>
0 commit comments