From d05d7b4938fcbda811c0761d8f4aa935af13c4f1 Mon Sep 17 00:00:00 2001 From: NotII <46204250+NotII@users.noreply.github.com> Date: Sun, 6 Apr 2025 16:20:01 +0100 Subject: [PATCH] other --- middleware.ts | 11 ++--------- public/git-info.json | 4 ++-- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/middleware.ts b/middleware.ts index 7a5b474..321afb0 100644 --- a/middleware.ts +++ b/middleware.ts @@ -26,15 +26,8 @@ export async function middleware(req: NextRequest) { } try { - // Get the origin but handle localhost differently to avoid SSL issues - const origin = req.nextUrl.origin; - - // Construct the auth check URL based on environment - // For localhost, explicitly use HTTP instead of HTTPS - const isLocalhost = origin.includes('localhost') || origin.includes('127.0.0.1'); - const protocol = isLocalhost ? 'http' : 'https'; - const host = req.nextUrl.host; - const authCheckUrl = `${protocol}://${host}/api/auth/check`; + // Always use localhost for internal container communication + const authCheckUrl = "http://localhost:3000/api/auth/check"; console.log(`Using internal auth check URL: ${authCheckUrl}`); diff --git a/public/git-info.json b/public/git-info.json index 1ef53c3..f76b7bd 100644 --- a/public/git-info.json +++ b/public/git-info.json @@ -1,4 +1,4 @@ { - "commitHash": "59a9063", - "buildTime": "2025-04-06T14:50:28.182Z" + "commitHash": "bff930b", + "buildTime": "2025-04-06T15:19:20.427Z" } \ No newline at end of file