We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a0ca5e commit ccec996Copy full SHA for ccec996
1 file changed
pages/_middleware.js
@@ -17,7 +17,7 @@ function customScriptName(req) {
17
18
function disableLogin(req) {
19
if (process.env.DISABLE_LOGIN && req.nextUrl.pathname.endsWith('/login')) {
20
- return new Response('403 Forbidden', { status: 403 });
+ return new Response('Login is disabled', { status: 403 });
21
}
22
23
0 commit comments