diff --git a/.github/workflows/qa_deploy.yaml b/.github/workflows/qa_deploy.yaml index fc8036f9..439661f6 100644 --- a/.github/workflows/qa_deploy.yaml +++ b/.github/workflows/qa_deploy.yaml @@ -1,7 +1,7 @@ name: Codepet QA_deploy front on: push: - branches: [ 'QA' ] + branches: ['QA'] jobs: build_and_push_to_docker_hub_frontend: name: Push Docker image to DockerHub diff --git a/src/services/UserService.ts b/src/services/UserService.ts index 41f329f4..8f29813e 100644 --- a/src/services/UserService.ts +++ b/src/services/UserService.ts @@ -8,7 +8,9 @@ export const userApi = createApi({ reducerPath: 'userApi', baseQuery: fetchBaseQuery({ baseUrl: - process.env.NODE_ENV === 'production' ? BASE_DEV_URL : BASE_TEST_URL, + process.env.NODE_ENV === 'production' + ? `${BASE_DEV_URL}api/v1/` + : `${BASE_TEST_URL}api/v1/`, prepareHeaders: async (headers) => { const accessToken = localStorage.getItem('token'); if (accessToken) {