make it run again

This commit is contained in:
Jonathan Summers-Muir committed 2022-12-02 10:07:35 +08:00
1 parent 9e6397f019
commit 39f158a1ca
1 file changed
+12 -12
+12 -12
View File
@@ -1,15 +1,15 @@
// import { NextResponse } from 'next/server'
// import type { NextRequest } from 'next/server'
import { NextResponse } from 'next/server'
import type { NextRequest } from 'next/server'
// // This function can be marked `async` if using `await` inside
// export function middleware(request: NextRequest) {
// const headers = new Headers(request.headers)
// console.log('middleware?')
// console.log({ headers })
// //return NextResponse.redirect(new URL('/about-2', request.url))
// }
// This function can be marked `async` if using `await` inside
export function middleware(request: NextRequest) {
const headers = new Headers(request.headers)
console.log('middleware?')
console.log({ headers })
//return NextResponse.redirect(new URL('/about-2', request.url))
}
// See "Matching Paths" below to learn more
// export const config = {
// matcher: '/about/:path*',
// }
export const config = {
matcher: '/about/:path*',
}