diff --git a/.build.hash b/.build.hash index 60740fe..a638fb5 100644 --- a/.build.hash +++ b/.build.hash @@ -1 +1 @@ -e520c3d4f21d892f230efe5f06e338b842191dd6-372bcf506971f56c4911b429b9f5de5bc37ed008-e9eccd451b778829eb2f2c9752c670b707e1268b +ba1c2fbda874bcd3f92bedd8442c050c23d03fb9-372bcf506971f56c4911b429b9f5de5bc37ed008-e9eccd451b778829eb2f2c9752c670b707e1268b diff --git a/src/components/InterestInventory.js b/src/components/InterestInventory.js index 99ef479..57d15c7 100644 --- a/src/components/InterestInventory.js +++ b/src/components/InterestInventory.js @@ -23,7 +23,12 @@ const InterestInventory = () => { const [loading, setLoading] = useState(false); const [error, setError] = useState(null); const [userProfile, setUserProfile] = useState(null); - const isProd = (process.env.ENV_NAME || '').toLowerCase() === 'prod'; + // Frontend bundles can be "production" in dev/staging. Hide only on real prod hosts. + const host = (typeof window !== 'undefined' && window.location && window.location.hostname) ? window.location.hostname : ''; + const PROD_HOSTS = new Set(['aptivaai.com', 'www.aptivaai.com']); + const isProd = PROD_HOSTS.has(host); + // If you ever add another canonical prod host, just append it to PROD_HOSTS. + // Dev/staging hosts (e.g., dev1.aptivaai.com, staging.aptivaai.com) will show the button. const navigate = useNavigate();