bugfix: invitation link copy option disapearing fixed. route problem for unauthorizrd users opening invitation link fixed.
This commit is contained in:
@@ -1,7 +1,17 @@
|
||||
import { NextResponse } from 'next/server';
|
||||
import type { NextRequest } from 'next/server';
|
||||
|
||||
const publicRoutes = ['/', '/login', '/register', '/terms', '/privacy', '/forgot-password'];
|
||||
/** Routes that must work without an existing session (first-time invitees). */
|
||||
const publicRoutes = [
|
||||
'/',
|
||||
'/login',
|
||||
'/register',
|
||||
'/terms',
|
||||
'/privacy',
|
||||
'/forgot-password',
|
||||
'/accept-invite',
|
||||
'/accept-organization-invite',
|
||||
];
|
||||
|
||||
export function proxy(request: NextRequest) {
|
||||
const { pathname } = request.nextUrl;
|
||||
|
||||
Reference in New Issue
Block a user