Refactor build workflow by removing unnecessary dependency installation step and add new SaT configuration file with scene and source definitions
Some checks failed
Lint and Build / build (pull_request) Failing after 2m57s
Some checks failed
Lint and Build / build (pull_request) Failing after 2m57s
This commit is contained in:
parent
3c58ccc5af
commit
450b6d6044
4 changed files with 1010 additions and 19 deletions
|
@ -21,7 +21,10 @@ export function middleware(request: NextRequest) {
|
|||
// Skip authentication for localhost/internal requests (optional security)
|
||||
const host = request.headers.get('host');
|
||||
if (host && (host.startsWith('localhost') || host.startsWith('127.0.0.1') || host.startsWith('192.168.'))) {
|
||||
console.log('Allowing internal network access without API key');
|
||||
// Don't log for frequently polled endpoints to reduce noise
|
||||
if (!request.nextUrl.pathname.includes('/api/obsStatus')) {
|
||||
console.log('Allowing internal network access without API key');
|
||||
}
|
||||
return NextResponse.next();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue