Issue: Users couldn't login and were seeing "Google login not available in demo mode"
Date Fixed: October 8, 2025
The deployed application was stuck in demo mode, preventing normal login functionality. Users were seeing the demo login page instead of the regular login page with Google authentication.
Root Cause:
- The app checks for
REACT_APP_DEMO_MODEenvironment variable - No environment variables were set in Vercel
- When
undefined, the app behavior was inconsistent
# Set REACT_APP_DEMO_MODE to false for production
vercel env add REACT_APP_DEMO_MODE production
# Value: falsevercel env lsResult:
name value environments created
REACT_APP_DEMO_MODE Encrypted Production 13s ago
vercel --prodNew Production URL: https://client-qfxiss8tj-aarifs-projects-a2bd2db2.vercel.app
const isDemoMode = process.env.REACT_APP_DEMO_MODE === 'true';
<Route
path="/login"
element={isDemoMode ? <DemoLogin /> : <Login />}
/>Now:
- Production:
REACT_APP_DEMO_MODE=false→ Users get regular<Login />page with Google auth - Demo: Set to
trueif you want demo mode
✅ Email/Password authentication ✅ Google OAuth login (if configured) ✅ Full user registration
Demo credentials for testing:
- Admin: demo@automation-platform.com / demo123
- Agency: agency@demo.com / agency123
- Consultant: consultant@demo.com / consultant123
vercel env lsecho "your-value" | vercel env add VARIABLE_NAME productionvercel env rm REACT_APP_DEMO_MODE productionvercel env pull- Visit: https://client-qfxiss8tj-aarifs-projects-a2bd2db2.vercel.app
- Click "Login" or go to
/login - You should now see the regular login page with:
- Email/Password fields
- Google login button (if Firebase is configured)
- Register link
# Update the environment variable
echo "true" | vercel env add REACT_APP_DEMO_MODE production
# Redeploy
cd client
vercel --prodCreate a .env.local file in the client directory:
REACT_APP_DEMO_MODE=false
| Time | URL | Status | Mode |
|---|---|---|---|
| Now | client-qfxiss8tj | ✅ Ready | Production (Demo OFF) |
| 5m ago | client-nd6iyg569 | ✅ Ready | Unknown (Demo state unclear) |
| 45m ago | client-8d134yx51 | ❌ Error | Build failed |
Demo mode has been disabled. Users can now use regular login with full authentication features.
Live URL: https://client-qfxiss8tj-aarifs-projects-a2bd2db2.vercel.app