Skip to content

Commit 893a05a

Browse files
committed
Remove unused developer docs environment variable check
1 parent 3f808f7 commit 893a05a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/middleware.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import type {NextRequest} from 'next/server';
22
import {NextResponse} from 'next/server';
33

4-
// This env var is set in next.config.js based on the `NEXT_PUBLIC_DEVELOPER_DOCS` env var at build time
5-
// a workaround edge middleware not having access to env vars
6-
const isDeveloperDocs = process.env.DEVELOPER_DOCS_;
7-
84
export const config = {
95
// learn more: https://nextjs.org/docs/pages/building-your-application/routing/middleware#matcher
106
matcher: [

0 commit comments

Comments
 (0)