Production Environment Setup Guide
Required GitHub Secrets
To ensure the application operates correctly in the production environment, you need to configure the following GitHub Secrets.
Azure Fluid Relay Settings
AZURE_TENANT_ID
- Tenant ID for Azure Fluid Relay
- Example:
your-production-tenant-id
AZURE_ENDPOINT
- Endpoint for Azure Fluid Relay
- Example:
https://your-production-endpoint.fluidrelay.azure.com
AZURE_PRIMARY_KEY
- Primary key for Azure Fluid Relay
- Example:
your-production-primary-key
AZURE_SECONDARY_KEY
- Secondary key for Azure Fluid Relay
- Example:
your-production-secondary-key
AZURE_ACTIVE_KEY
- The key to use ("primary" or "secondary")
- Usually
primary
Firebase Settings
FIREBASE_API_KEY
- API Key for the Firebase project
FIREBASE_TOKEN
- Token for Firebase CLI deployment
Current Issues
The following error is occurring in the production environment:
[HTTP/1.1 404] /api/fluid-token
[ERROR]: Endpoint not foundPossible Causes
- Incorrect Azure Configuration: Azure settings in GitHub Secrets are incorrect
- Key Mismatch: The key set in Azure Fluid Relay does not match the key in GitHub Secrets
- Tenant ID Mismatch: The Tenant ID for Azure Fluid Relay is incorrect
Resolution Steps
- Check Fluid Relay service settings in the Azure Portal
- Update Azure settings in GitHub Secrets with the correct values
- Execute deployment to reflect the settings
- Check Firebase Functions logs to verify if the issue is resolved
How to Check Logs
You can check Firebase Functions logs with the following command:
bash
firebase functions:log --project outliner-d57b0Or you can check logs in the "Functions" section of the Firebase Console.
Troubleshooting
If 401 Errors Persist
- Verify that Firebase Authentication is configured correctly
- Verify that client-side Firebase settings are correct
- Verify that the ID token is being sent correctly
If 403 Errors (Invalid token) Persist
- Verify that the Azure Fluid Relay key matches GitHub Secrets
- Verify that the Tenant ID is correct
- Verify that the Azure Fluid Relay service is enabled