Skip to content

Commit

Permalink
add last remaining var
Browse files Browse the repository at this point in the history
  • Loading branch information
simbayippy committed Nov 3, 2024
1 parent bdf5ebf commit 7d84102
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions k8s/peerprep-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion peerprep-fe/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 7d84102

Please sign in to comment.