mirror of
https://github.com/plankanban/planka.git
synced 2025-08-09 15:35:29 +02:00
used base url
This commit is contained in:
parent
aa392b0b3c
commit
af9bdda192
1 changed files with 2 additions and 1 deletions
|
@ -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 }));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue