13 lines
462 B
TypeScript
13 lines
462 B
TypeScript
/**
|
|
* @module middleware
|
|
* @description hooks-up `next-auth` into the page processing pipeline
|
|
*/
|
|
|
|
import { auth } from '@/app/lib/auth.google'
|
|
|
|
export default auth; // middleware will call NextAuth's `auth` method, which will in turn call) see `auth.config.google.ts`
|
|
|
|
export const config = {
|
|
// midleware will NOT be called for paths: ['/api/auth/*', '/_next/static/*', '/_next/image*']
|
|
matcher: ['/((?!api|_next/static|_next/image|.*\\.png$).*)'],
|
|
}; |