refactor: Remove hardcoded values
Queue Release Build / prepare (push) Successful in 2m28s
Deploy Web Apps / deploy (push) Successful in 7m58s
Queue Release Build / build-linux (push) Successful in 46m59s
Queue Release Build / build-windows (push) Successful in 26m2s
Queue Release Build / finalize (push) Successful in 23s
Queue Release Build / prepare (push) Successful in 2m28s
Deploy Web Apps / deploy (push) Successful in 7m58s
Queue Release Build / build-linux (push) Successful in 46m59s
Queue Release Build / build-windows (push) Successful in 26m2s
Queue Release Build / finalize (push) Successful in 23s
This commit is contained in:
@@ -4,8 +4,8 @@ import {
|
||||
computed,
|
||||
type Signal
|
||||
} from '@angular/core';
|
||||
import { environment } from '../../../environments/environment';
|
||||
import { STORAGE_KEY_ICE_SERVERS } from '../../core/constants';
|
||||
import { ICE_SERVERS } from './realtime.constants';
|
||||
|
||||
export interface IceServerEntry {
|
||||
id: string;
|
||||
@@ -15,7 +15,7 @@ export interface IceServerEntry {
|
||||
credential?: string;
|
||||
}
|
||||
|
||||
const DEFAULT_ENTRIES: IceServerEntry[] = ICE_SERVERS.map((server, index) => ({
|
||||
const DEFAULT_ENTRIES: IceServerEntry[] = environment.realtime.defaultIceServers.map((server, index) => ({
|
||||
id: `default-stun-${index}`,
|
||||
type: 'stun' as const,
|
||||
urls: Array.isArray(server.urls) ? server.urls[0] : server.urls
|
||||
|
||||
Reference in New Issue
Block a user