openvidu-call: Fixed bugs serving the app
This commit is contained in:
parent
c4165fa795
commit
32420cad2b
568
openvidu-call/openvidu-call-back/package-lock.json
generated
568
openvidu-call/openvidu-call-back/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -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);
|
||||
|
||||
@ -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',
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user