mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 15:35:55 +01:00
Update default config
This commit is contained in:
@@ -11,6 +11,7 @@ export function middleware(req: NextRequest, ev: NextFetchEvent) {
|
||||
(url.pathname.includes('/_next/') && !url.pathname.includes('/pages/')) ||
|
||||
url.pathname === '/favicon.ico' ||
|
||||
url.pathname === '/404' ||
|
||||
url.pathname === '/migrate' ||
|
||||
url.pathname.includes('pages/_app'));
|
||||
if (!skipURL && !isCorrectPassword && process.env.PASSWORD) {
|
||||
url.pathname = '/login';
|
||||
|
||||
Reference in New Issue
Block a user