mirror of https://github.com/kern/filepizza
Attempting to make the peerjs server replaceable
parent
3fb178554a
commit
fada6bb61e
@ -0,0 +1,9 @@
|
||||
import { NextResponse } from 'next/server'
|
||||
|
||||
export async function GET(): Promise<NextResponse> {
|
||||
const peerServers = process.env.PEERJS_SERVERS
|
||||
? process.env.PEERJS_SERVERS.split(',').map(url => url.trim())
|
||||
: [];
|
||||
|
||||
return NextResponse.json({ servers: peerServers });
|
||||
}
|
||||
Loading…
Reference in New Issue