SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
fix(BUG): not found is fixed (#405)
pal-sig447700326a05
diff --git a/frontend/src/AppRoutes/index.tsx b/frontend/src/AppRoutes/index.tsxindex f99557b3e4..17c56f1d03 100644--- a/frontend/src/AppRoutes/index.tsx+++ b/frontend/src/AppRoutes/index.tsx@@ -4,24 +4,43 @@ import ROUTES from 'constants/routes';import AppLayout from 'container/AppLayout';import history from 'lib/history';import React, { Suspense } from 'react';+import { useSelector } from 'react-redux';import { Redirect, Route, Router, Switch } from 'react-router-dom';+import { AppState } from 'store/reducers';+import AppReducer from 'types/reducer/app';import routes from './routes';-const App = (): JSX.Element => (- <Router history={history}>- <AppLayout>- <Suspense fallback={<Spinner size="large" tip="Loading..." />}>- <Switch>- {routes.map(({ path, component, exact }) => (- <Route key={`${path}`} exact={exact} path={path} component={component} />- ))}- <Redirect from="/" to={ROUTES.APPLICATION} />- <Route component={NotFound} />- </Switch>- </Suspense>- </AppLayout>- </Router>-);++const App = (): JSX.Element => {+ const { isLoggedIn } = useSelector<AppState, AppReducer>((state) => state.app);++ return (+ <Router history={history}>+ <AppLayout>+ <Suspense fallback={<Spinner size="large" tip="Loading..." />}>+ <Switch>+ {routes.map(({ path, component, exact }, index) => (+ <Route key={index} exact={exact} path={path} component={component} />+ ))}+ <Route+ path="/"+ exact+ render={(): JSX.Element =>+ isLoggedIn ? (+ <Redirect to={ROUTES.APPLICATION} />+ ) : (+ <Redirect to={ROUTES.SIGN_UP} />+ )+ }+ />+ <Route path="*" component={NotFound} />+ </Switch>+ </Suspense>+ </AppLayout>+ </Router>+ );+};+export default App;