From af9bdda1920e1e7dd143594284ea32afbbaf662e Mon Sep 17 00:00:00 2001 From: Jeffrey Date: Fri, 1 Sep 2023 05:21:28 -0500 Subject: [PATCH] used base url --- client/src/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/index.js b/client/src/index.js index 85fed020..ef5afbad 100755 --- a/client/src/index.js +++ b/client/src/index.js @@ -1,12 +1,13 @@ import React from 'react'; import ReactDOM from 'react-dom/client'; +import Config from './constants/Config'; import store from './store'; import history from './history'; import Root from './components/Root'; import './i18n'; -fetch('http://localhost:1337/api/appconfig').then((response) => { +fetch(`${Config.SERVER_BASE_URL}/api/appconfig`).then((response) => { response.json().then((config) => { const root = ReactDOM.createRoot(document.getElementById('root')); root.render(React.createElement(Root, { store, history, config }));