- ✅ Backend Deployed: https://optex-wc0v.onrender.com
- ✅ Basic Functionality: Health check, plant simulation, basic optimization
⚠️ Missing: Firebase integration for APC limits
BACKEND_URL=https://optex-wc0v.onrender.com
✅ Status: Already configured in render.yaml
Upload Firebase service account key as a Render secret file:
-
Get Firebase Service Account Key:
- Go to Firebase Console
- Select project:
optex-b13d3 - Project Settings → Service Accounts → Generate New Private Key
- Download the JSON file
-
Upload to Render:
- Go to your Render service dashboard
- Environment → Secret Files
- Add new file:
/etc/secrets/serviceAccountKey.json - Copy-paste the entire JSON content
-
Environment Variable:
GOOGLE_APPLICATION_CREDENTIALS=/etc/secrets/serviceAccountKey.json
If you don't want to upload the service account key:
FIREBASE_PROJECT_ID=optex-b13d3
✅ Status: Already configured in render.yaml
- Go to https://dashboard.render.com/
- Select your
optex-backendservice - Go to Environment tab
- Click Add Environment Variable
- Add the required variables
The render.yaml file already includes the basic configuration. For Firebase:
- Upload the service account key as a secret file (see Option A above)
- Redeploy the service
| Variable | Purpose | Required |
|---|---|---|
BACKEND_URL |
Internal API communication for optimizer worker | ✅ Yes |
GOOGLE_APPLICATION_CREDENTIALS |
Firebase service account for APC limits | 🔄 Optional |
FIREBASE_PROJECT_ID |
Firebase project for basic auth | 🔄 Optional |
-
Health Check: https://optex-wc0v.onrender.com/health
- Should show
"firebase_connected": true
- Should show
-
APC Limits: Frontend optimizer should show both:
- ✅ APC Limits Optimization (from Firebase)
- ✅ Engineering Limits Optimization (hardcoded)
-
Settings Sync: Pricing and ML/FP ratio should sync from Firebase
Without Firebase configuration, the backend will:
- ✅ Still work for basic plant simulation and optimization
- ✅ Use engineering limits for optimization (hardcoded safety limits)
- ❌ Miss APC limits from Firebase (operator-defined limits)
- ❌ Miss settings sync (pricing, ML/FP ratios from Firebase)
The system is fully functional without Firebase, but you lose the dynamic configuration features.
- Test current deployment - everything should work except Firebase features
- Optionally add Firebase - only if you need APC limits sync
- Monitor logs - check Render logs for any Firebase connection messages
The backend is production-ready as-is! 🚀