заменил переменную окружения

This commit is contained in:
Joe_Peach committed 2026-04-02 12:56:47 +03:00
1 parent df7a3a542c
commit 5de57cc7ad
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ import axios, { AxiosInstance } from 'axios';
class ApiClient { class ApiClient {
private axiosInstance: AxiosInstance; private axiosInstance: AxiosInstance;
constructor(baseURL: string = import.meta.env.VITE_API_URL) { constructor(baseURL: string = 'https://pvh.projects.rustprogersteam.ru') {
this.axiosInstance = axios.create({ this.axiosInstance = axios.create({
baseURL, baseURL,
timeout: 10000, timeout: 10000,
@@ -65,7 +65,7 @@ const ModalRequestForm: React.FC<Props> = ({ open, onClose }) => {
// ✅ Отправка данных на бэкенд // ✅ Отправка данных на бэкенд
const sendToBackend = async (data: FormData): Promise<boolean> => { const sendToBackend = async (data: FormData): Promise<boolean> => {
try { try {
const response = await fetch(`/api/requests`, { const response = await fetch(`/api/email`, {
method: "POST", method: "POST",
headers: { headers: {
"Content-Type": "application/json", "Content-Type": "application/json",