mirror of
https://github.com/supabase/supabase.git
synced 2026-10-13 21:29:08 +03:00
make it run again
This commit is contained in:
1 parent
9e6397f019
commit
39f158a1ca
1 file changed
+12
-12
@@ -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*',
|
||||
}
|
||||
Reference in new issue
Block a user