openvidu-call: Built non minified backend

This commit is contained in:
csantosm 2022-06-13 14:24:59 +02:00
parent 01b6acfa4b
commit c4165fa795
4 changed files with 5 additions and 9 deletions

View File

@ -12,4 +12,4 @@ CALL_OPENVIDU_CERTTYPE=${CALL_OPENVIDU_CERTTYPE}
EOF
cd /opt/openvidu-call
node openvidu-call-server.js
node app.js

View File

@ -22,10 +22,7 @@
"supertest": "6.2.2",
"ts-loader": "9.2.6",
"ts-node": "10.4.0",
"typescript": "4.4.4",
"webpack": "5.66.0",
"webpack-cli": "4.9.1",
"webpack-node-externals": "3.0.0"
"typescript": "4.4.4"
},
"homepage": "https://github.com/OpenVidu/openvidu-call#readme",
"jest": {
@ -47,7 +44,7 @@
"url": "git+https://github.com/OpenVidu/openvidu-call.git"
},
"scripts": {
"build": "webpack",
"build": "tsc",
"start": "cross-env CALL_OPENVIDU_CERTTYPE=selfsigned nodemon src/app.ts",
"test": "jest"
},

View File

@ -1,4 +1,3 @@
import * as express from 'express';
import { SERVER_PORT, OPENVIDU_URL, OPENVIDU_SECRET, CALL_OPENVIDU_CERTTYPE } from './config';
import {app as callController} from './controllers/CallController';
@ -15,7 +14,7 @@ app.use('/call', callController);
// Accept selfsigned certificates if CALL_OPENVIDU_CERTTYPE=selfsigned
if (CALL_OPENVIDU_CERTTYPE === 'selfsigned') {
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0"
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
}
app.listen(SERVER_PORT, () => {

View File

@ -12,7 +12,7 @@
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
"sourceMap": true, /* Generates corresponding '.map' file. */
// "outFile": "./", /* Concatenate and emit output to single file. */
// "outDir": "./dist", /* Redirect output structure to the directory. */
"outDir": "./dist", /* Redirect output structure to the directory. */
// "rootDir": "./src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
// "composite": true, /* Enable project compilation */
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */