Skip to content

Commit 7f37efe

Browse files
author
Dan Kelley
committed
updated proxy to hit server one port 5000, local or not
1 parent 22bef27 commit 7f37efe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/client/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ WORKDIR /app
66

77
# add `/app/node_modules/.bin` to $PATH
88
ENV PATH /app/node_modules/.bin:$PATH
9-
# ENV PAWS_API_HOST paws-compose-server
9+
1010
# install app dependencies
1111
COPY package.json ./
1212
COPY package-lock.json ./

src/client/src/setupProxy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const proxy = require('http-proxy-middleware');
22

33
module.exports = function(app) {
44
app.use(proxy('/api/**', {
5-
target: process.env.IS_LOCAL === 'true' ? 'http://localhost:3333' : 'http://server:5000',
5+
target: process.env.IS_LOCAL === 'true' ? 'http://localhost:5000' : 'http://server:5000',
66
changeOrigin: true,
77
}
88
));

0 commit comments

Comments
 (0)