fix(frontend): wrong endpoint routing (#16)

* fix(frontend): separate server and browser base url

* style: format

* fix: wrong endpoint routing
This commit is contained in:
Reinaldy Rafli 2022-10-01 21:57:59 +07:00 committed by GitHub
parent 2fd9bafaa2
commit 69604ad0ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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