Skip to content

Commit

Permalink
Merge branch 'main' into fix/button-import
Browse files Browse the repository at this point in the history
  • Loading branch information
ansulagrawal authored Nov 5, 2023
2 parents 6743acb + a907721 commit 9e44dd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dashboard/final-example/auth.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const authConfig = {
const isOnDashboard = nextUrl.pathname.startsWith('/dashboard');
if (isOnDashboard) {
if (isLoggedIn) return true;
return false; // Redirect unathenticated users to login page
return false; // Redirect unauthenticated users to login page
} else if (isLoggedIn) {
return Response.redirect(new URL('/dashboard', nextUrl));
}
Expand Down
2 changes: 1 addition & 1 deletion dashboard/final-example/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ export default NextAuth(authConfig).auth;

export const config = {
// https://nextjs.org/docs/app/building-your-application/routing/middleware#matcher
matcher: ['/((?!api|_next/static|_next/image|.png).*)'],
matcher: ['/((?!api|_next/static|_next/image|.*\\.png$).*)'],
};

0 comments on commit 9e44dd8

Please sign in to comment.