File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- import type { NextRequest } from 'next/server' ;
2- import { NextResponse } from 'next/server' ;
1+ import type { NextRequest } from 'next/server' ;
2+ import { NextResponse } from 'next/server' ;
33
44// This env var is set in next.config.js based on the `NEXT_PUBLIC_DEVELOPER_DOCS` env var at build time
55// a workaround edge middleware not having access to env vars
@@ -27,7 +27,7 @@ const handleRedirects = (request: NextRequest) => {
2727
2828 const redirectTo = redirectMap . get ( urlPath ) ;
2929 if ( redirectTo ) {
30- return NextResponse . redirect ( new URL ( redirectTo , request . url ) , { status : 301 } ) ;
30+ return NextResponse . redirect ( new URL ( redirectTo , request . url ) , { status : 301 } ) ;
3131 }
3232
3333 // If we don't find an exact match, we try to look for a :guide placeholder
You can’t perform that action at this time.
0 commit comments