From e63e84034fae4bb820ac55757c60981289f2cd8f Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Sun, 10 May 2026 09:36:45 -0400 Subject: [PATCH] Fix Next calculator URL env var --- src/components/ScrollSection.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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({