refactor: improve code readability and consistency in api.ts and common.json
This commit is contained in:
@@ -165,7 +165,9 @@ async function getPatterns() {
|
||||
} catch {
|
||||
// Supabase unreachable — redirect to sign in
|
||||
const signIn = pathsConfig.auth.signIn;
|
||||
return NextResponse.redirect(new URL(signIn, req.nextUrl.origin).href);
|
||||
return NextResponse.redirect(
|
||||
new URL(signIn, req.nextUrl.origin).href,
|
||||
);
|
||||
}
|
||||
|
||||
const { origin, pathname: next } = req.nextUrl;
|
||||
|
||||
Reference in New Issue
Block a user