File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change
1
+ USE_ADVANCED_CHARTS=false
Original file line number Diff line number Diff line change @@ -15,16 +15,10 @@ import {
15
15
import { OrderTabs } from '~/components/OrderTabs' ;
16
16
17
17
export const loader = async ( { context } : LoaderFunctionArgs ) => {
18
- const isProd = ! ! context . env ;
19
- let useAdvancedCharts ;
20
- if ( isProd ) {
21
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
22
- useAdvancedCharts = ( context . env as any ) . USE_ADVANCED_CHARTS === 'true' ? true : false ;
23
- } else {
24
- useAdvancedCharts = process . env . USE_ADVANCED_CHARTS === 'true' ? true : false ;
25
- }
18
+ console . log ( 'CONTEXT' , context ) ;
26
19
return json ( {
27
- useAdvancedCharts
20
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
21
+ useAdvancedCharts : ( context . env as any ) . USE_ADVANCED_CHARTS === 'true' ? true : false
28
22
} ) ;
29
23
} ;
30
24
You can’t perform that action at this time.
0 commit comments