diff --git a/.drone.yml b/.drone.yml index 0d601f1681..35cbf82cdc 100644 --- a/.drone.yml +++ b/.drone.yml @@ -39,7 +39,7 @@ steps: - yarn --frozen-lockfile - yarn run lint - yarn run build - - sed -i 's/http\:\/\/localhost\:8080\/api\/v1/\/api\/v1/g' dist/index.html # Override the default api url used for developing + - sed -i 's/http\:\/\/localhost\:3456\/api\/v1/\/api\/v1/g' dist/index.html # Override the default api url used for developing - name: static image: kolaente/zip @@ -113,7 +113,7 @@ steps: - yarn --frozen-lockfile - yarn run lint - yarn run build - - sed -i 's/http\:\/\/localhost\:8080\/api\/v1/\/api\/v1/g' dist/index.html # Override the default api url used for developing + - sed -i 's/http\:\/\/localhost\:3456\/api\/v1/\/api\/v1/g' dist/index.html # Override the default api url used for developing - name: static image: kolaente/zip diff --git a/Dockerfile b/Dockerfile index bf17d6e888..d7a7771371 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ RUN \ yarn install --frozen-lockfile && \ yarn run build && \ # Override config - sed -i 's/http\:\/\/localhost\:8080\/api\/v1/\/api\/v1/g' dist/index.html + sed -i 's/http\:\/\/localhost\:3456\/api\/v1/\/api\/v1/g' dist/index.html # Stage 2: copy FROM nginx diff --git a/public/index.html b/public/index.html index fa3c156379..dcc686eb67 100644 --- a/public/index.html +++ b/public/index.html @@ -30,7 +30,7 @@ // This variable points the frontend to the api. // It has to be the full url, including the last /api/v1 part and port. // You can change this if your api is not reachable on the same port as the frontend. - window.API_URL = 'http://localhost:8080/api/v1' + window.API_URL = 'http://localhost:3456/api/v1' //