заменил переменную окружения
This commit is contained in:
1 parent
df7a3a542c
commit
5de57cc7ad
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -3,7 +3,7 @@ import axios, { AxiosInstance } from 'axios';
|
||||
class ApiClient {
|
||||
private axiosInstance: AxiosInstance;
|
||||
|
||||
constructor(baseURL: string = import.meta.env.VITE_API_URL) {
|
||||
constructor(baseURL: string = 'https://pvh.projects.rustprogersteam.ru') {
|
||||
this.axiosInstance = axios.create({
|
||||
baseURL,
|
||||
timeout: 10000,
|
||||
|
||||
@@ -65,7 +65,7 @@ const ModalRequestForm: React.FC<Props> = ({ open, onClose }) => {
|
||||
// ✅ Отправка данных на бэкенд
|
||||
const sendToBackend = async (data: FormData): Promise<boolean> => {
|
||||
try {
|
||||
const response = await fetch(`/api/requests`, {
|
||||
const response = await fetch(`/api/email`, {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
|
||||
Reference in new issue
Block a user