openvidu-call: Fixed bugs serving the app

This commit is contained in:
csantosm 2022-06-13 16:59:47 +02:00
parent c4165fa795
commit 32420cad2b
4 changed files with 146 additions and 455 deletions

File diff suppressed because it is too large Load Diff

View File

@ -7,7 +7,7 @@ dotenv.config();
const app = express();
app.use(express.static('public'));
app.use(express.static(__dirname + '/public'));
app.use(express.json());
app.use('/call', callController);

View File

@ -1,29 +0,0 @@
const path = require('path');
const Dotenv = require('dotenv-webpack');
module.exports = {
entry: './src/app.ts',
mode: 'production',
target: 'node',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'openvidu-call-server.js'
},
resolve: {
extensions: ['.ts', '.js'],
},
plugins: [
new Dotenv()
],
module: {
rules: [
{
test: /\.ts$/,
use: [
'ts-loader',
]
}
]
}
}

View File

@ -29,7 +29,7 @@ export class CallComponent implements OnInit {
});
let nickname: string = '';
// Just or debuggin purposes
// Just for debugging purposes
const regex = /^UNSAFE_DEBUG_USE_CUSTOM_IDS_/gm;
const match = regex.exec(this.sessionId);
if (match && match.length > 0) {