Changed URL env varbile name in front-end to REMOTE_URL, since it was conflicting with the backend. Changed the initServer to reflect these new changes
This commit is contained in:
@@ -31,7 +31,7 @@ const initServer = async() => {
|
||||
const clientTranscode = getClientTranscode.value || "false";
|
||||
|
||||
let fullInfoClient = "PORT=" + clientPortNumber + "\n"
|
||||
+ "URL=" + clientURL
|
||||
+ "REMOTE_URL=" + clientURL
|
||||
|
||||
console.log("client transcode", clientTranscode);
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
const env = {
|
||||
port: process.env.PORT,
|
||||
url: process.env.URL,
|
||||
url: process.env.REMOTE_URL,
|
||||
enableVideoTranscoding: process.env.ENABLE_VIDEO_TRANSCODING,
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -66,7 +66,7 @@ module.exports = (env) => {
|
||||
CSSExtract,
|
||||
new webpack.DefinePlugin({
|
||||
"process.env.PORT": JSON.stringify(process.env.PORT),
|
||||
"process.env.URL": JSON.stringify(process.env.URL),
|
||||
"process.env.REMOTE_URL": JSON.stringify(process.env.REMOTE_URL),
|
||||
"process.env.ENABLE_VIDEO_TRANSCODING": JSON.stringify(process.env.ENABLE_VIDEO_TRANSCODING)
|
||||
}),
|
||||
new CompressionPlugin()
|
||||
|
||||
Reference in New Issue
Block a user