feat: change redirect url

This commit is contained in:
Nevo David 2026-03-03 19:42:43 +07:00
parent 42d7927d1c
commit 52d84a2bfb

View file

@ -73,7 +73,7 @@ export async function middleware(request: NextRequest) {
const org = nextUrl.searchParams.get('org');
const url = new URL(nextUrl).search;
if (!nextUrl.pathname.startsWith('/auth') && !authCookie) {
const providers = ['google', 'settings'];
const providers = ['google', 'appsumo', 'settings'];
const findIndex = providers.find((p) => nextUrl.href.indexOf(p) > -1);
const additional = !findIndex
? ''