Define as a NextJS API

This commit is contained in:
Andrew Pennington 2024-08-15 23:05:14 +01:00
parent 1b71a9cfd7
commit 293391dd20
No known key found for this signature in database
GPG key ID: E9DA097213FD17EA
2 changed files with 42 additions and 4 deletions

View 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
});
}