Update Angular tutorial scripts to run on port 5080
This commit is contained in:
parent
791c6d8110
commit
a00a2c2b30
@ -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",
|
||||
|
||||
@ -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/';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user