Files
next-learn/dashboard/15-final/middleware.ts
Balázs Orbán f8adecb7a4 Match NextAuth config with the course (#221)
* Create .env.local.example

* changes

* Update page.tsx

* Update definitions.ts

* wip signin validation

* fix validation in action

* fix

* remove import

* change

* update

* change

* added button state

* improved UI

---------

Co-authored-by: Steven Tey <stevensteel97@gmail.com>
2023-10-25 23:53:07 +01:00

10 lines
301 B
TypeScript

import NextAuth from 'next-auth';
import { authConfig } from './auth.config';
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|favicon.ico).*)'],
};