diff --git a/src/components/ScrollSection.jsx b/src/components/ScrollSection.jsx index f95a2a5..614faeb 100644 --- a/src/components/ScrollSection.jsx +++ b/src/components/ScrollSection.jsx @@ -5,7 +5,8 @@ import { useEffect } from "react"; import "./ScrollSection.css"; // Calculator URL - uses environment variable or defaults to localhost for development -const CALCULATOR_URL = import.meta.env.VITE_CALCULATOR_URL || "http://localhost:8501"; +const CALCULATOR_URL = + process.env.NEXT_PUBLIC_CALCULATOR_URL || "http://localhost:8501"; function ScrollSection({ section, index, isActive, onInView, onExploreHouseholds }) { const { ref, inView } = useInView({