Fixed Randomize Answers button in prod
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
This commit is contained in:
parent
e25662aae4
commit
e2523e9391
@ -1 +1 @@
|
|||||||
e520c3d4f21d892f230efe5f06e338b842191dd6-372bcf506971f56c4911b429b9f5de5bc37ed008-e9eccd451b778829eb2f2c9752c670b707e1268b
|
ba1c2fbda874bcd3f92bedd8442c050c23d03fb9-372bcf506971f56c4911b429b9f5de5bc37ed008-e9eccd451b778829eb2f2c9752c670b707e1268b
|
||||||
|
@ -23,7 +23,12 @@ const InterestInventory = () => {
|
|||||||
const [loading, setLoading] = useState(false);
|
const [loading, setLoading] = useState(false);
|
||||||
const [error, setError] = useState(null);
|
const [error, setError] = useState(null);
|
||||||
const [userProfile, setUserProfile] = 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();
|
const navigate = useNavigate();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user