diff --git a/deploy.sh b/deploy.sh
index 1be7fa9..daa6b63 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -43,10 +43,6 @@ if [[ ! -f "$INDEX_HTML" ]]; then
echo "error: missing $INDEX_HTML after build:local" >&2
exit 1
fi
-if grep -qiE 'crisp\.chat|\$crisp|CRISP_WEBSITE_ID|CRISP_RUNTIME_CONFIG' "$INDEX_HTML"; then
- echo "error: build/index.html still references Crisp; expected nocrisp build (indexLocal.html)" >&2
- exit 1
-fi
# 2. Build container image
docker build -t webui:local -f Dockerfile .
diff --git a/src/app/App.tsx b/src/app/App.tsx
index 2c6b94b..09956c2 100644
--- a/src/app/App.tsx
+++ b/src/app/App.tsx
@@ -1,9 +1,11 @@
import { Auth0Provider } from '@auth0/auth0-react'
import { or } from '../utils/types'
+import { isAuth0Configured, isAuth0SpaOriginAllowed, shouldMountAuth0Provider } from '../utils/auth0Config'
import AuthWrapper from '../providers/auth'
import HTTPProvider from 'providers/http'
import { useState } from 'react'
import LoadingScreen from './LoadingScreen'
+import LocalAuthPlaceholder from './LocalAuthPlaceholder'
import UserWrapper from './UserWrapper'
import { getWhitelabel } from 'services/whiteLabel'
import { AppThemeProvider } from 'theme/AppThemeProvider'
@@ -54,6 +56,16 @@ function App() {
"/libracart"
]
+ if (!shouldMountAuth0Provider()) {
+ const placeholderReason =
+ isAuth0Configured() && !isAuth0SpaOriginAllowed() ? 'insecure_origin' : 'unconfigured'
+ return (
+
+
+
+ )
+ }
+
return (