We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4aa6b4c commit f02f2c2Copy full SHA for f02f2c2
1 file changed
src/pages/Chat.tsx
@@ -34,11 +34,13 @@ const MemoizedChat = React.memo(function ChatComponent({
34
const allowedDomains =
35
import.meta.env.VITE_APP_ALLOWED_DOMAINS?.split(',') || [];
36
const currentDomain = window.location.hostname;
37
-
+
38
if (!allowedDomains.includes(currentDomain)) {
39
return undefined;
40
}
41
42
+ console.log("currentDomain", currentDomain, allowedDomains.includes(currentDomain));
43
44
return ({
45
apiKey: import.meta.env.VITE_FIREBASE_API_KEY,
46
authDomain: import.meta.env.VITE_FIREBASE_AUTH_DOMAIN,
0 commit comments