Skip to content

Commit f928128

Browse files
[getsentry/action-github-commit] Auto commit
1 parent 1683571 commit f928128

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/middleware.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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

0 commit comments

Comments
 (0)