Connect, collaborate, and grow with a community of TypeScript developers
enable basic auth in prod
Chris Bautistab53212c407f3
diff --git a/src/middleware.ts b/src/middleware.tsindex 6cd08d62..1547eeb5 100644--- a/src/middleware.ts+++ b/src/middleware.ts@@ -1,11 +1,6 @@import { type NextRequest, NextResponse } from 'next/server';export function middleware(req: NextRequest) {- // don't allow auth on preview domains so we can test shit- if (req.headers.get("host") !== "typehero.dev") {- return NextResponse.next();- }-if (process.env.NODE_ENV === 'production') {const basicAuth = req.headers.get('authorization');const url = req.nextUrl;