From 69604ad0cef2a06180b16e9b4a4e693af08d52f8 Mon Sep 17 00:00:00 2001 From: Reinaldy Rafli Date: Sat, 1 Oct 2022 21:57:59 +0700 Subject: [PATCH] fix(frontend): wrong endpoint routing (#16) * fix(frontend): separate server and browser base url * style: format * fix: wrong endpoint routing --- client/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/Dockerfile b/client/Dockerfile index e2e24cd..eb049d8 100644 --- a/client/Dockerfile +++ b/client/Dockerfile @@ -8,9 +8,9 @@ WORKDIR /app COPY . . -ENV VITE_NODE_ENV="development" -ENV VITE_SERVER_API_ENDPOINT="https://jokesbapak2.reinaldyrafli.com/api/" -ENV VITE_BROWSER_API_ENDPOINT="http://api:5000/" +ENV VITE_NODE_ENV="production" +ENV VITE_SERVER_API_ENDPOINT="http://api:5000" +ENV VITE_BROWSER_API_ENDPOINT="https://jokesbapak2.reinaldyrafli.com/api" ENV VITE_SENTRY_DSN="" RUN npm ci && npm run build && rm -rf node_modules && npm ci --omit=dev