From 07cd599f00b2c4b4cfe7a3dc347b7706e7c768ce Mon Sep 17 00:00:00 2001 From: Wataru Ono Date: Wed, 9 Feb 2022 23:10:04 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=92=B0=E5=A2=83=E5=A4=89?= =?UTF-8?q?=E6=95=B0=E5=90=8D=E3=81=AE=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit より意味のある名前にするため --- src/pages/_middleware.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/_middleware.ts b/src/pages/_middleware.ts index 66130ff..8715034 100644 --- a/src/pages/_middleware.ts +++ b/src/pages/_middleware.ts @@ -8,8 +8,8 @@ export const middleware = (req: NextRequest) => { const [user, password] = Buffer.from(auth, "base64").toString().split(":"); if ( - user === process.env.BASIC_AUTH_USER && - password === process.env.BASIC_AUTH_PASSWORD + user === process.env.NEXT_PUBLIC_BASIC_AUTH_USERNAME && + password === process.env.NEXT_PUBLIC_BASIC_AUTH_PASSWORD ) { return NextResponse.next(); }