@@ -4,7 +4,6 @@ import style from "../style";
44import { useWindowHeight } from "../hooks/useWindow" ;
55import { useEffect , useRef , useMemo } from "react" ;
66import { useNavigate , useLocation } from "react-router-dom" ;
7- import config from "../config/environment" ;
87
98export default function OBBBAHouseholdExplorer ( ) {
109 const windowHeight = useWindowHeight ( ) ;
@@ -13,7 +12,11 @@ export default function OBBBAHouseholdExplorer() {
1312 const iframeRef = useRef ( null ) ;
1413
1514 // Memoize baseUrl to prevent unnecessary re-renders
16- const baseUrl = useMemo ( ( ) => config . OBBBA_IFRAME_URL , [ ] ) ;
15+ // Hardcoding URL to bypass any build/environment issues
16+ const baseUrl = useMemo (
17+ ( ) => "https://policyengine.github.io/obbba-scatter" ,
18+ [ ] ,
19+ ) ;
1720
1821 // Memoize iframe origin for efficient message verification
1922 const iframeOrigin = useMemo ( ( ) => new URL ( baseUrl ) . origin , [ baseUrl ] ) ;
@@ -26,6 +29,14 @@ export default function OBBBAHouseholdExplorer() {
2629 ? `${ baseUrl } ?${ urlParams . toString ( ) } `
2730 : baseUrl ;
2831
32+ // Debug logging
33+ console . log ( "OBBBA Explorer Debug:" , {
34+ baseUrl,
35+ locationSearch : location . search ,
36+ urlParams : urlParams . toString ( ) ,
37+ finalIframeUrl : iframeUrl ,
38+ } ) ;
39+
2940 useEffect ( ( ) => {
3041 // Listen for messages from the iframe
3142 const handleMessage = ( event ) => {
0 commit comments