next.js/test/e2e/middleware-static-files/app/middleware.js
middleware.js21 lines425 B
import { NextResponse } from 'next/server'

export const config = {
  matcher: [
    '/file.svg',
    '/vercel copy.svg',
    '/another/file.svg',
    '/another/hello',
    '/dynamic/:path*',
    '/glob/:path*',
    '/pages-another/hello',
    '/pages-dynamic/:path*',
    '/pages-glob/:path*',
    '/_next/static/css/:path*',
  ],
}

export default function middleware() {
  return NextResponse.json({ middleware: true })
}
Quest for Codev2.0.0
/
SIGN IN