mirror of
https://github.com/swissmakers/swiss-datashare.git
synced 2026-04-11 10:27:01 +02:00
fix: setup wizard doesn't redirect after completion
This commit is contained in:
@@ -76,7 +76,7 @@ const AdminConfigTable = () => {
|
||||
.updateMany(updatedConfigVariables)
|
||||
.then(async () => {
|
||||
await configService.finishSetup();
|
||||
router.replace("/upload");
|
||||
router.reload();
|
||||
})
|
||||
.catch(toast.axiosError);
|
||||
} else {
|
||||
|
||||
@@ -57,6 +57,10 @@ export async function middleware(request: NextRequest) {
|
||||
routes.disabled.routes.push("/auth/resetPassword*");
|
||||
}
|
||||
|
||||
if (getConfig("SETUP_STATUS") == "FINISHED") {
|
||||
routes.disabled.routes.push("/admin/setup");
|
||||
}
|
||||
|
||||
// prettier-ignore
|
||||
const rules = [
|
||||
// Disabled routes
|
||||
|
||||
Reference in New Issue
Block a user