mirror of
				https://github.com/karl0ss/homepage.git
				synced 2025-11-04 00:10:57 +00:00 
			
		
		
		
	Make heads up clearer
This commit is contained in:
		
							parent
							
								
									68480a65db
								
							
						
					
					
						commit
						f1ec02fb6f
					
				@ -11,7 +11,7 @@ export function middleware(req) {
 | 
				
			|||||||
  if (!host || !allowedHosts.includes(host)) {
 | 
					  if (!host || !allowedHosts.includes(host)) {
 | 
				
			||||||
    // eslint-disable-next-line no-console
 | 
					    // eslint-disable-next-line no-console
 | 
				
			||||||
    console.error(
 | 
					    console.error(
 | 
				
			||||||
      `Host validation failed for: ${host}. Hint: Set HOMEPAGE_ALLOWED_HOSTS to allow requests from this host.`,
 | 
					      `Host validation failed for: ${host}. Hint: Set the HOMEPAGE_ALLOWED_HOSTS environment variable to allow requests from this host.`,
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
    return NextResponse.json({ error: "Host validation failed. See logs for more details." }, { status: 400 });
 | 
					    return NextResponse.json({ error: "Host validation failed. See logs for more details." }, { status: 400 });
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user