Restructure
This commit is contained in:
parent
293391dd20
commit
f11180db7a
1 changed files with 5 additions and 4 deletions
|
@ -1,9 +1,10 @@
|
||||||
import { NextResponse } from 'next/server';
|
|
||||||
import process from 'process';
|
import process from 'process';
|
||||||
|
|
||||||
export async function GET() {
|
export default function handler(req, res) {
|
||||||
return NextResponse.json({
|
const envVars = {
|
||||||
BACKEND_API_URL: process.env.BACKEND_API_URL,
|
BACKEND_API_URL: process.env.BACKEND_API_URL,
|
||||||
BACKEND_WS_URL: process.env.BACKEND_WS_URL
|
BACKEND_WS_URL: process.env.BACKEND_WS_URL
|
||||||
});
|
}
|
||||||
|
res.status(200).json(envVars);
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue