Skip to content

Commit 2a877a7

Browse files
committed
fix middleware
1 parent 28a2d24 commit 2a877a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

peerprep-fe/src/middleware.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { NextResponse } from 'next/server';
22
import type { NextRequest } from 'next/server';
33

4-
const baseURL = process.env.AUTH_SERVICE_URL || 'http://172.17.0.1:3001/api/v1';
4+
const baseURL =
5+
process.env.NEXT_PUBLIC_AUTH_SERVICE_URL || 'http://172.17.0.1:3001/api/v1';
56

67
// This function can be marked `async` if using `await` inside
78
export async function middleware(request: NextRequest) {

0 commit comments

Comments
 (0)