We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12ca99a commit 1a2eb89Copy full SHA for 1a2eb89
test/production/proxy-typescript/app/proxy.ts
@@ -1,11 +1,6 @@
1
-import { NextProxy, NextResponse, URLPattern, ProxyConfig } from 'next/server'
+import { NextProxy, NextResponse, ProxyConfig } from 'next/server'
2
3
export const proxy: NextProxy = function (request) {
4
- const pattern = new URLPattern({
5
- pathname: '/:path',
6
- })
7
- console.log(pattern.test(request.nextUrl.pathname))
8
-
9
if (request.nextUrl.pathname === '/static') {
10
return new NextResponse(null, {
11
headers: {
0 commit comments