Skip to content

Commit

Permalink
refactor: 環境変数名の変更
Browse files Browse the repository at this point in the history
より意味のある名前にするため
  • Loading branch information
watagit committed Feb 9, 2022
1 parent be118a2 commit 07cd599
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/_middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 07cd599

Please sign in to comment.