feat: change redirect url
This commit is contained in:
parent
42d7927d1c
commit
52d84a2bfb
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
? ''
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue