added docker-compose for production
This commit is contained in:
parent
62e3a164d9
commit
b314dd76e5
4 changed files with 39 additions and 47 deletions
|
|
@ -10,7 +10,6 @@ import { AppThemeProvider } from 'theme/AppThemeProvider'
|
|||
|
||||
function App() {
|
||||
const [token, setToken] = useState<string | undefined>(undefined)
|
||||
// const [palette, setPalette] = useState<Theme>(CreateTheme(getThemeType()));
|
||||
|
||||
const whiteLabel = getWhitelabel()
|
||||
const manifestPath = "/" + whiteLabel.name.replace(/\s/g, "") + "/manifest.json"
|
||||
|
|
@ -28,8 +27,6 @@ function App() {
|
|||
// Set favicon
|
||||
const faviconDocument = document.getElementById("favicon-link") as HTMLLinkElement;
|
||||
const faviconPath = `/${whiteLabel.name.replace(/\s/g, "")}/favicon.ico`;
|
||||
console.log("Favicon Document: ", faviconDocument)
|
||||
console.log("Favicon Path: ", faviconPath)
|
||||
fetch(faviconPath).then(response => {
|
||||
if (response.ok && faviconDocument) {
|
||||
faviconDocument.href = faviconPath;
|
||||
|
|
@ -43,14 +40,9 @@ function App() {
|
|||
let domain: string | undefined = import.meta.env.VITE_AUTH0_CLIENT_DOMAIN;
|
||||
let audience: string | undefined = import.meta.env.VITE_AUTH0_AUDIENCE;
|
||||
|
||||
let client_id = whiteLabel.auth0ClientId
|
||||
if (!client_id) client_id = import.meta.env.VITE_AUTH0_STAGING_CLIENT_ID;
|
||||
// let client_id = import.meta.env.VITE_AUTH0_CLIENT_ID;
|
||||
|
||||
console.log("Domain: " + domain)
|
||||
console.log("Audience: " + audience)
|
||||
console.log("Client ID: " + client_id)
|
||||
console.log("API URL: " + import.meta.env.VITE_APP_API_URL)
|
||||
// let client_id = whiteLabel.auth0ClientId
|
||||
let client_id = import.meta.env.VITE_AUTH0_CLIENT_ID;
|
||||
// if (!client_id) client_id = import.meta.env.VITE_AUTH0_CLIENT_ID;
|
||||
|
||||
return (
|
||||
<AppThemeProvider>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue