Skip to content

Commit

Permalink
add TS test
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsorban44 committed Feb 5, 2024
1 parent 4cfbb11 commit f1a8b15
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion test/production/middleware-typescript/app/middleware.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import { NextMiddleware, NextResponse, URLPattern } from 'next/server'
import {
NextMiddleware,
NextResponse,
URLPattern,
MiddlewareConfig,
} from 'next/server'

export const middleware: NextMiddleware = function (request) {
const pattern = new URLPattern({
Expand All @@ -18,3 +23,9 @@ export const middleware: NextMiddleware = function (request) {
})
}
}

export const config: MiddlewareConfig = {
matchers: [],
regions: [],
unstable_allowDynamicGlobs: undefined,
}

0 comments on commit f1a8b15

Please sign in to comment.