1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-06-30 06:30:11 +02:00

fix: setup wizard doesn't redirect after completion

This commit is contained in:
Elias Schneider 2023-02-12 20:00:35 +01:00
parent 2a826f7941
commit 7cd9dff637
No known key found for this signature in database
GPG Key ID: 07E623B294202B6C
2 changed files with 5 additions and 1 deletions

View File

@ -76,7 +76,7 @@ const AdminConfigTable = () => {
.updateMany(updatedConfigVariables)
.then(async () => {
await configService.finishSetup();
router.replace("/upload");
router.reload();
})
.catch(toast.axiosError);
} else {

View File

@ -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