@@ -2,15 +2,15 @@ import 'core-js/stable';
22import 'regenerator-runtime/runtime' ;
33
44import {
5- APP_INIT_ERROR , APP_READY , subscribe , initialize ,
5+ APP_INIT_ERROR , APP_READY , subscribe , initialize , mergeConfig ,
66} from '@edx/frontend-platform' ;
77import { AppProvider , ErrorPage } from '@edx/frontend-platform/react' ;
88import ReactDOM from 'react-dom/client' ;
99import { Routes , Route } from 'react-router-dom' ;
1010import { QueryClientProvider } from '@tanstack/react-query' ;
1111import { ReactQueryDevtools } from '@tanstack/react-query-devtools' ;
1212
13- import Header from '@edx/frontend-component-header' ;
13+ import { LearningHeader as Header } from '@edx/frontend-component-header' ;
1414import FooterSlot from '@openedx/frontend-slot-footer' ;
1515import messages from './i18n' ;
1616import queryClient from './queryClient' ;
@@ -56,4 +56,12 @@ subscribe(APP_INIT_ERROR, (error) => {
5656
5757initialize ( {
5858 messages,
59+ requireAuthenticatedUser : true ,
60+ handlers : {
61+ config : ( ) => {
62+ mergeConfig ( {
63+ DASHBOARD_PAGE_SIZE : process . env . DASHBOARD_PAGE_SIZE || null ,
64+ } , 'LearningPathsConfig' ) ;
65+ } ,
66+ } ,
5967} ) ;
0 commit comments