diff options
| author | Haishan <[email protected]> | 2021-05-30 16:33:27 +0800 |
|---|---|---|
| committer | Haishan <[email protected]> | 2021-05-30 17:11:57 +0800 |
| commit | cac64c0d2a80105db14ae04e0aeb4eacb148a771 (patch) | |
| tree | 0471b5af331986b00366856ace236617bcb6c16e /src/components/Root.tsx | |
| parent | d46ce57be85dc39453cb5668a49ca76e18d6ec7c (diff) | |
Use vite
Diffstat (limited to 'src/components/Root.tsx')
| -rw-r--r-- | src/components/Root.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/Root.tsx b/src/components/Root.tsx index f65fd03..d0cc1f1 100644 --- a/src/components/Root.tsx +++ b/src/components/Root.tsx @@ -69,7 +69,9 @@ const routes = [ { path: '/proxies', element: <Proxies /> }, { path: '/rules', element: <Rules /> }, { path: '/about', element: <About /> }, - __DEV__ ? { path: '/style', element: <StyleGuide /> } : false, + process.env.NODE_ENV === 'development' + ? { path: '/style', element: <StyleGuide /> } + : false, ].filter(Boolean) as PartialRouteObject[]; function RouteInnerApp() { |
