mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-09 21:07:46 +00:00
14 lines
349 B
JavaScript
14 lines
349 B
JavaScript
// Supports both a single string value or an array of matchers
|
|
export const config = {
|
|
matcher: ['/about/:path*', '/dashboard/:path*'],
|
|
};
|
|
|
|
export default function middleware(request, _event) {
|
|
const response = new Response('middleware response');
|
|
|
|
// Set custom header
|
|
response.headers.set('x-modified-edge', 'true');
|
|
|
|
return response;
|
|
}
|