mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-18 03:08:30 +00:00
fix(internal-streams): fallback API_PORT
env variable to default
This commit is contained in:
parent
78288b8fac
commit
34e872aba7
@ -85,7 +85,7 @@ export function createInternalStream(url, obj = {}) {
|
||||
controller: new AbortController()
|
||||
};
|
||||
|
||||
let streamLink = new URL('/api/istream', `http://127.0.0.1:${process.env.API_PORT}`);
|
||||
let streamLink = new URL('/api/istream', `http://127.0.0.1:${process.env.API_PORT || 9000}`);
|
||||
streamLink.searchParams.set('t', streamID);
|
||||
return streamLink.toString();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user