From 7d84102a9cdd37ef763c678f0255dcc7e9689581 Mon Sep 17 00:00:00 2001 From: simbayippy Date: Mon, 4 Nov 2024 03:16:00 +0800 Subject: [PATCH] add last remaining var --- k8s/peerprep-config.yml | 1 + peerprep-fe/src/middleware.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/k8s/peerprep-config.yml b/k8s/peerprep-config.yml index 5b0527bda7..595a092673 100644 --- a/k8s/peerprep-config.yml +++ b/k8s/peerprep-config.yml @@ -6,4 +6,5 @@ type: Opaque stringData: NEXT_PUBLIC_API_GATEWAY_URL: "${_NEXT_PUBLIC_API_GATEWAY_URL}" NEXT_PUBLIC_GITHUB_CLIENT_ID: "${_NEXT_PUBLIC_GITHUB_CLIENT_ID}" + NEXT_PUBLIC_SOCK_SERVER_URL: "${_NEXT_PUBLIC_SOCK_SERVER_URL}" # Removed individual service URLs as they are no longer needed diff --git a/peerprep-fe/src/middleware.ts b/peerprep-fe/src/middleware.ts index 1f01bf528b..27a6028624 100644 --- a/peerprep-fe/src/middleware.ts +++ b/peerprep-fe/src/middleware.ts @@ -9,7 +9,7 @@ const baseURL = export async function middleware(request: NextRequest) { const token = request.cookies.get('access-token'); - // Check if token exists + // Check if token exists. if (!token) { return NextResponse.redirect(new URL('/signin', request.url)); }