mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-17 06:16:59 +08:00
fix(server): redirect to setup page if not initialized (#7875)
This commit is contained in:
@@ -48,7 +48,7 @@ function RootRoutes() {
|
||||
const config = useServerConfig();
|
||||
const location = useLocation();
|
||||
|
||||
if (!config.initialized) {
|
||||
if (!config.initialized && location.pathname !== '/admin/setup') {
|
||||
return <Navigate to="/admin/setup" />;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user