mirror of
https://github.com/stonith404/pingvin-share.git
synced 2025-02-05 01:38:56 -05:00
fix: setup wizard doesn't redirect after completion
This commit is contained in:
parent
2a826f7941
commit
7cd9dff637
2 changed files with 5 additions and 1 deletions
|
@ -76,7 +76,7 @@ const AdminConfigTable = () => {
|
||||||
.updateMany(updatedConfigVariables)
|
.updateMany(updatedConfigVariables)
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
await configService.finishSetup();
|
await configService.finishSetup();
|
||||||
router.replace("/upload");
|
router.reload();
|
||||||
})
|
})
|
||||||
.catch(toast.axiosError);
|
.catch(toast.axiosError);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -57,6 +57,10 @@ export async function middleware(request: NextRequest) {
|
||||||
routes.disabled.routes.push("/auth/resetPassword*");
|
routes.disabled.routes.push("/auth/resetPassword*");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (getConfig("SETUP_STATUS") == "FINISHED") {
|
||||||
|
routes.disabled.routes.push("/admin/setup");
|
||||||
|
}
|
||||||
|
|
||||||
// prettier-ignore
|
// prettier-ignore
|
||||||
const rules = [
|
const rules = [
|
||||||
// Disabled routes
|
// Disabled routes
|
||||||
|
|
Loading…
Add table
Reference in a new issue