alpha testing feature flag

This commit is contained in:
jackiettran
2025-10-30 16:16:27 -04:00
parent ee3a6fd8e1
commit 71ce2c63fb
4 changed files with 51 additions and 30 deletions

View File

@@ -38,6 +38,13 @@ const AppContent: React.FC = () => {
useEffect(() => {
const checkAlphaAccess = async () => {
// Bypass alpha access check if feature is disabled
if (process.env.REACT_APP_ALPHA_TESTING_ENABLED !== 'true') {
setHasAlphaAccess(true);
setCheckingAccess(false);
return;
}
try {
const response = await axios.get(`${API_URL}/alpha/verify-session`, {
withCredentials: true,