Skip to content

Commit 1a2eb89

Browse files
committed
test: Remove URLPattern usage
1 parent 12ca99a commit 1a2eb89

File tree

1 file changed

+1
-6
lines changed
  • test/production/proxy-typescript/app

1 file changed

+1
-6
lines changed

test/production/proxy-typescript/app/proxy.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
import { NextProxy, NextResponse, URLPattern, ProxyConfig } from 'next/server'
1+
import { NextProxy, NextResponse, ProxyConfig } from 'next/server'
22

33
export const proxy: NextProxy = function (request) {
4-
const pattern = new URLPattern({
5-
pathname: '/:path',
6-
})
7-
console.log(pattern.test(request.nextUrl.pathname))
8-
94
if (request.nextUrl.pathname === '/static') {
105
return new NextResponse(null, {
116
headers: {

0 commit comments

Comments
 (0)