feat: add environment variable documentation and update configurations for socket port in Docker setup
All checks were successful
Build Docker Images for Pull Request / build (pull_request) Successful in 15m3s

This commit is contained in:
2025-02-20 22:48:25 +01:00
parent 9ee391fee8
commit ffd83d8bbc
7 changed files with 48 additions and 16 deletions

View File

@@ -1,5 +1,7 @@
const path = require('path');
const { EnvironmentPlugin } = require('webpack');
const envPath = path.resolve(__dirname, '../../.env');
const envConfig = require('dotenv').config({ path: envPath }).parsed;
module.exports = (env) => {
const url = env.URL || 'http://localhost';
@@ -25,7 +27,7 @@ module.exports = (env) => {
},
plugins: [
new EnvironmentPlugin({
WEBRTC_INTERNALS_EXPORTER_URL: url,
WEBRTC_INTERNALS_EXPORTER_URL: envConfig.WEBRTC_INTERNALS_EXPORTER_URL || url
}),
],
};