🔧 Updated LIBRARY_SOCKET_HOST
This commit is contained in:
@@ -0,0 +1 @@
|
||||
LIBRARY_SOCKET_HOST=ws://importapi:3001
|
||||
@@ -78,7 +78,6 @@ services:
|
||||
- "3001:3001"
|
||||
environment:
|
||||
SERVICES: api
|
||||
DOCKER_RABBITMQ_CONNECTION_STRING: 'amqp://user:bitnami@rabbitmq:5672'
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.threetwo-import-api.rule=Host(`localhost`)"
|
||||
|
||||
@@ -38,7 +38,7 @@ export const IMPORT_SERVICE_BASE_URI = hostURIBuilder({
|
||||
|
||||
export const SOCKET_BASE_URI = hostURIBuilder({
|
||||
protocol: "http",
|
||||
host: process.env.DOCKER_HOST || "localhost",
|
||||
host: process.env.LIBRARY_SOCKET_HOST || "localhost",
|
||||
port: "3001",
|
||||
apiPath: `/`,
|
||||
});
|
||||
|
||||
@@ -99,6 +99,9 @@ module.exports = (env) => {
|
||||
}),
|
||||
new webpack.DefinePlugin({
|
||||
"process.env.DOCKER_HOST": JSON.stringify(process.env.DOCKER_HOST),
|
||||
"process.env.LIBRARY_SOCKET_HOST": JSON.stringify(
|
||||
process.env.LIBRARY_SOCKET_HOST,
|
||||
),
|
||||
}),
|
||||
new MiniCssExtractPlugin({
|
||||
filename: "./css/[name].css",
|
||||
|
||||
Reference in New Issue
Block a user