Update api url
Deploy Frontend / build-and-deploy (push) Waiting to run
Details
Deploy Frontend / build-and-deploy (push) Waiting to run
Details
This commit is contained in:
parent
052d42faeb
commit
f10e69f964
2
.env
2
.env
|
|
@ -1,5 +1,5 @@
|
||||||
# API Configuration
|
# API Configuration
|
||||||
#VITE_API_BASE_URL=http://localhost:1726/api
|
VITE_API_BASE_URL=https://api.ruspet-preforma.ru:45373/api
|
||||||
VITE_API_KEY=test
|
VITE_API_KEY=test
|
||||||
VITE_API_PUBLIC_KEY=ruspet_public_key_2026
|
VITE_API_PUBLIC_KEY=ruspet_public_key_2026
|
||||||
VITE_API_PRIVATE_KEY=ruspet_private_key_SUPER_SECRET_2026
|
VITE_API_PRIVATE_KEY=ruspet_private_key_SUPER_SECRET_2026
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ function getCorrectedTimestamp(): string {
|
||||||
}
|
}
|
||||||
|
|
||||||
const apiClient = axios.create({
|
const apiClient = axios.create({
|
||||||
baseURL: '/api',
|
baseURL: import.meta.env.VITE_API_BASE_URL || '/api',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
|
|
||||||
const publicApiClient = axios.create({
|
const publicApiClient = axios.create({
|
||||||
baseURL: '/api',
|
baseURL: import.meta.env.VITE_API_BASE_URL || '/api',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue