We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d09e62 commit ac42511Copy full SHA for ac42511
apps/pyconkr/src/App.tsx
@@ -3,13 +3,17 @@ import React from "react";
3
import { BrowserRouter, Route, Routes } from "react-router-dom";
4
import MainLayout from "./components/layout";
5
import { Test } from "./components/pages/test";
6
+import { IS_DEBUG_ENV } from "./consts/index.ts";
7
+
8
+import * as Common from "@frontend/common";
9
10
export const App: React.FC = () => {
11
return (
12
<BrowserRouter>
13
<Routes>
14
<Route element={<MainLayout />}>
- <Route path="/" element={<Test />} />
15
+ { IS_DEBUG_ENV && <Route path="/debug" element={<Test />} /> }
16
+ <Route path="*" element={<Common.Components.DynamicRoutePage />} />
17
</Route>
18
</Routes>
19
</BrowserRouter>
0 commit comments