Skip to content

Commit

Permalink
Add discoveries redirection back
Browse files Browse the repository at this point in the history
  • Loading branch information
hanbyul-here committed Nov 2, 2023
1 parent 1f6071f commit 0d0d7d1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/scripts/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { BrowserRouter, Route, Routes, useLocation } from 'react-router-dom';
import { DevseedUiThemeProvider as DsTp } from '@devseed-ui/theme-provider';
import { userPages } from 'veda';

import { discoveryRoutes } from './redirects';
import theme, { GlobalStyles } from '$styles/theme';
import { getAppURL } from '$utils/history';
import LayoutRoot, {
Expand All @@ -14,7 +15,6 @@ import { useScrollbarWidthAsCssVar } from '$utils/use-scrollbar-width-css';

// Page loading
import { PageLoading } from '$components/common/loading-skeleton';

// Views
import UhOh from '$components/uhoh';
import ErrorBoundary from '$components/uhoh/fatal-error';
Expand Down Expand Up @@ -110,6 +110,10 @@ function Root() {
{process.env.NODE_ENV !== 'production' && (
<Route path='/sandbox/*' element={<Sandbox />} />
)}

{/* Legacy: Routes related to renaming /discoveries to /stories. */}
{discoveryRoutes}

{userPages.map((p) => (
<Route
key={p}
Expand Down

0 comments on commit 0d0d7d1

Please sign in to comment.