diff --git a/openvidu-angular/package.json b/openvidu-angular/package.json index d8ba87dc..c13bb6e3 100644 --- a/openvidu-angular/package.json +++ b/openvidu-angular/package.json @@ -3,9 +3,9 @@ "version": "2.27.0", "license": "Apache-2.0", "scripts": { - "start": "./node_modules/@angular/cli/bin/ng.js serve", - "build": "./node_modules/@angular/cli/bin/ng.js build", - "build:prod": "./node_modules/@angular/cli/bin/ng.js build --output-path ./openvidu-basic-node/public/ --configuration production" + "start": "ng serve --port=5080 --host=0.0.0.0 --disable-host-check", + "build": "ng build", + "build:prod": "ng build --output-path ./openvidu-basic-node/public/ --configuration production" }, "dependencies": { "@angular/animations": "15.0.4", diff --git a/openvidu-angular/src/app/app.component.ts b/openvidu-angular/src/app/app.component.ts index e5fc34fd..8faba9c3 100644 --- a/openvidu-angular/src/app/app.component.ts +++ b/openvidu-angular/src/app/app.component.ts @@ -49,7 +49,7 @@ export class AppComponent implements OnDestroy { // If LIVEKIT_URL is not configured, use default value from local development if (!LIVEKIT_URL) { - if (window.location.hostname !== 'localhost') { + if (window.location.hostname === 'localhost') { LIVEKIT_URL = 'ws://localhost:7880/'; } else { LIVEKIT_URL = 'wss://' + window.location.hostname + ':7443/';