feat: allow runtime configuration (#654)

This commit is contained in:
Diana Olarte
2022-11-30 17:13:10 +11:00
committed by GitHub
parent 35dfc720c8
commit 8ea457f949
5 changed files with 11 additions and 1 deletions

View File

@@ -1,6 +1,8 @@
import React from 'react';
import { getConfig } from '@edx/frontend-platform';
import { AppProvider } from '@edx/frontend-platform/react';
import { Helmet } from 'react-helmet';
import { Redirect, Route, Switch } from 'react-router-dom';
import {
@@ -20,6 +22,9 @@ registerIcons();
const MainApp = () => (
<AppProvider store={configureStore()}>
<Helmet>
<link rel="shortcut icon" href={getConfig().FAVICON_URL} type="image/x-icon" />
</Helmet>
<Switch>
<Route exact path="/">
<Redirect to={updatePathWithQueryParams(REGISTER_PAGE)} />