Something went wrong. Try again.
A comprehensive digital solution dedicated to bridging the gap between those offering services and those seeking them, providing a centrali… gigwork.co.in
Something went wrong. Try again.
123456789101112131415161718192021222324import { NextResponse } from 'next/server'import type { NextRequest } from 'next/server'
export function middleware(request: NextRequest) { // Add your path conditions here if (request.nextUrl.pathname === '/') { return NextResponse.next() }
// For dynamic routes like /[id] if (request.nextUrl.pathname.match(/^\/[^/]+$/)) { return NextResponse.next() }
return NextResponse.next()}
export const config = { matcher: [ '/', '/:id*', ],}