mirror of
https://github.com/umami-software/umami.git
synced 2026-02-14 17:45:38 +01:00
Added logging to test Vercel issue.
This commit is contained in:
parent
c3bcf46dd3
commit
0f37c17cb5
1 changed files with 1 additions and 0 deletions
|
|
@ -16,6 +16,7 @@ function customScriptName(req) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function disableLogin(req) {
|
function disableLogin(req) {
|
||||||
|
console.log(process.env, process.env.DISABLE_LOGIN);
|
||||||
if (process.env.DISABLE_LOGIN && req.nextUrl.pathname.endsWith('/login')) {
|
if (process.env.DISABLE_LOGIN && req.nextUrl.pathname.endsWith('/login')) {
|
||||||
return new Response('Login is disabled', { status: 403 });
|
return new Response('Login is disabled', { status: 403 });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue