mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-11-13 22:05:15 +00:00
Introducing the Setup Wizard for creating the first user
- no longer setup a default - still able to do that with env vars however
This commit is contained in:
@@ -13,8 +13,9 @@ import {
|
||||
import { useAuthState } from "src/context";
|
||||
import { useHealth } from "src/hooks";
|
||||
|
||||
const Dashboard = lazy(() => import("src/pages/Dashboard"));
|
||||
const Setup = lazy(() => import("src/pages/Setup"));
|
||||
const Login = lazy(() => import("src/pages/Login"));
|
||||
const Dashboard = lazy(() => import("src/pages/Dashboard"));
|
||||
const Settings = lazy(() => import("src/pages/Settings"));
|
||||
const Certificates = lazy(() => import("src/pages/Certificates"));
|
||||
const Access = lazy(() => import("src/pages/Access"));
|
||||
@@ -37,6 +38,10 @@ function Router() {
|
||||
return <Unhealthy />;
|
||||
}
|
||||
|
||||
if (!health.data?.setup) {
|
||||
return <Setup />;
|
||||
}
|
||||
|
||||
if (!authenticated) {
|
||||
return (
|
||||
<Suspense fallback={<LoadingPage />}>
|
||||
|
||||
Reference in New Issue
Block a user