Skip to content

Commit

Permalink
Merge pull request #113 from tryyang2001/User-Microservice
Browse files Browse the repository at this point in the history
Fix deployment client-side error
  • Loading branch information
hhchinh2002 authored Apr 19, 2024
2 parents 2bf0081 + 3af5fdf commit b4f7998
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/user-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN yarn install

COPY . .

RUN printf "$PROD_ENV" >> .env
RUN if [ ! -f ".env" ]; then printf "$PROD_ENV" >> .env; fi

RUN yarn build

Expand Down
2 changes: 1 addition & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN yarn install

# Copy rest of the application files
COPY . .
RUN printf "$PROD_ENV" >> .env
RUN if [ ! -f ".env" ]; then printf "$PROD_ENV" >> .env; fi

# STAGE 2: build
FROM base AS build
Expand Down
1 change: 1 addition & 0 deletions nginx/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ server {
}

location / {
rewrite /(.*) /$1 break;
proxy_pass http://frontend/;
}
}

0 comments on commit b4f7998

Please sign in to comment.