Skip to content

Commit

Permalink
refactor(app): update .env.local
Browse files Browse the repository at this point in the history
  • Loading branch information
VanVorobyov committed Apr 1, 2024
1 parent a39e6d5 commit acc1bd6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/qa_deploy.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 3 additions & 1 deletion src/services/UserService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit acc1bd6

Please sign in to comment.