read configs from env

This commit is contained in:
h z
2024-12-05 13:39:08 +00:00
parent 3c53ef7a87
commit 8bae53d026
12 changed files with 80 additions and 62 deletions

View File

@@ -2,21 +2,16 @@ import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App";
import AuthProvider from "./AuthProvider";
import {config} from "./confs/appConfig";
import "bulma/css/bulma.min.css";
//ReactDOM.render(<App />, document.getElementById("root"));
const initializeApp = async () => {
await config();
const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
<AuthProvider>
<App />
</AuthProvider>
);
}
initializeApp();
const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
<AuthProvider>
<App />
</AuthProvider>
);