From 3a0c27a60a8c34e986872294740950a5df30b9a2 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Mon, 3 Nov 2025 12:08:07 -0500 Subject: [PATCH] fix e --- .env | 1 + .env.development | 1 + .env.production | 1 + src/services/siteEventService.js | 12 +++++------- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.env b/.env index 3a6cd48..40c8646 100644 --- a/.env +++ b/.env @@ -7,6 +7,7 @@ INSTAGRAM_URL=https://www.instagram.com # BACKEND END POINTS REACT_APP_MAIN_API='https://backoffice-apidev.simbrellang.net' +REACT_APP_EVENT_API='https://event-core.simbrellang.net' # ENQUIRIES CONTACTS VITE_CALL_ENDPOINT='09099000000' diff --git a/.env.development b/.env.development index 0915dd9..cc81039 100644 --- a/.env.development +++ b/.env.development @@ -7,6 +7,7 @@ VITE_INSTAGRAM_URL=https://www.instagram.com # BACKEND END POINTS REACT_APP_MAIN_API='https://backoffice-apidev.simbrellang.net' +REACT_APP_EVENT_API='https://event-core.simbrellang.net' # ENQUIRIES CONTACTS VITE_CALL_ENDPOINT='09099000000' diff --git a/.env.production b/.env.production index 3a6cd48..40c8646 100644 --- a/.env.production +++ b/.env.production @@ -7,6 +7,7 @@ INSTAGRAM_URL=https://www.instagram.com # BACKEND END POINTS REACT_APP_MAIN_API='https://backoffice-apidev.simbrellang.net' +REACT_APP_EVENT_API='https://event-core.simbrellang.net' # ENQUIRIES CONTACTS VITE_CALL_ENDPOINT='09099000000' diff --git a/src/services/siteEventService.js b/src/services/siteEventService.js index 1829f3f..032b796 100644 --- a/src/services/siteEventService.js +++ b/src/services/siteEventService.js @@ -1,6 +1,7 @@ import axios from "axios" +// import dotenv from 'dotenv'; +//dotenv.config(); -//REACT_APP_EVENT_API='https://event-core.simbrellang.net' axios.interceptors.request.use( config => { config.headers = { @@ -14,10 +15,7 @@ axios.interceptors.request.use( } ); const postAuxEnd = (path, postData, media=false) => { - const basePath = media ? process.env.REACT_APP_EVENT_API : 'https://event-core.simbrellang.net' - // const basePath = media ? 'http://209.195.2.27:5000' : 'http://209.195.2.27:5000' - //10.10.11.17 - // const basePath = media ? 'http://10.10.11.17:5000' : 'http://10.10.11.17:5000' + const basePath = media ? process.env.REACT_APP_EVENT_API : 'http://10.2.249.133:5000' return axios.post(`${basePath}${path}`, postData).then(res => { return res }).catch(err => { @@ -27,8 +25,8 @@ const postAuxEnd = (path, postData, media=false) => { } const getAuxEnd = (path, reqData= null) => { - const basePath = 'https://event-core.simbrellang.net' - //const basePath = 'http://209.195.2.27:5000' + const basePath = media ? process.env.REACT_APP_EVENT_API : 'http://10.2.249.133:5000' + return axios.get(`${basePath}${path}`,{ params: reqData }).then(res => { return res // localStorage.clear();