diff --git a/ui/app/api/env/route.ts b/ui/app/api/env/route.ts index 50aa7e6..b60bbf6 100644 --- a/ui/app/api/env/route.ts +++ b/ui/app/api/env/route.ts @@ -1,15 +1,13 @@ import process from 'process'; import { NextResponse } from 'next/server'; -async function requestHandler(_request: Request): NextResponse { +export async function GET(_request: Request): NextResponse { // Access environment variables const envVars = { - BACKEND_API_URL: process.env.BACKEND_API_URL, - BACKEND_WS_URL: process.env.BACKEND_WS_URL + 'BACKEND_API_URL': process.env.BACKEND_API_URL, + 'BACKEND_WS_URL': process.env.BACKEND_WS_URL } // Return the environment variables as a JSON response return NextResponse.json(envVars); } - -export { requestHandler as GET }; \ No newline at end of file