alpha testing feature flag
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user