Define as a NextJS API
This commit is contained in:
parent
1b71a9cfd7
commit
293391dd20
2 changed files with 42 additions and 4 deletions
9
ui/app/api/config/route.ts
Normal file
9
ui/app/api/config/route.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
import { NextResponse } from 'next/server';
|
||||
import process from 'process';
|
||||
|
||||
export async function GET() {
|
||||
return NextResponse.json({
|
||||
BACKEND_API_URL: process.env.BACKEND_API_URL,
|
||||
BACKEND_WS_URL: process.env.BACKEND_WS_URL
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue