Restructure

This commit is contained in:
Andrew Pennington 2024-08-15 23:33:01 +01:00
parent 293391dd20
commit f11180db7a
No known key found for this signature in database
GPG key ID: E9DA097213FD17EA

View file

@ -1,9 +1,10 @@
import { NextResponse } from 'next/server';
import process from 'process';
export async function GET() {
return NextResponse.json({
export default function handler(req, res) {
const envVars = {
BACKEND_API_URL: process.env.BACKEND_API_URL,
BACKEND_WS_URL: process.env.BACKEND_WS_URL
});
}
res.status(200).json(envVars);
}