Implement slave-master architecture

This commit is contained in:
fuomag9
2026-01-25 01:39:36 +01:00
parent 648d12bf16
commit 6fb39dc809
14 changed files with 2598 additions and 20 deletions

View File

@@ -14,7 +14,12 @@ export default auth((req) => {
const pathname = req.nextUrl.pathname;
// Allow public routes
if (pathname === "/login" || pathname.startsWith("/api/auth") || pathname === "/api/health") {
if (
pathname === "/login" ||
pathname.startsWith("/api/auth") ||
pathname === "/api/health" ||
pathname === "/api/instances/sync"
) {
return NextResponse.next();
}