Comprehensive checklist to ensure your Gamma integration is production-ready.
// Production client configuration
const gamma = new GammaClient({
apiKey: await secretManager.getSecret('GAMMA_API_KEY'),
timeout: 30000, # 30000: 30 seconds in ms
retries: 3,
});
import * as Sentry from '@sentry/node';
try {
await gamma.presentations.create({ ... });
} catch (err) {
Sentry.captureException(err, {
tags: { service: 'gamma', operation: 'create' },
});
throw new UserError('Unable to create presentation. Please try again.');
}
// Health check
app.get('/health/gamma', async (req, res) => {
try {
await gamma.ping();
res.json({ status: 'healthy', service: 'gamma' });
} catch (err) {
res.status(503).json({ status: 'unhealthy', error: err.message }); # HTTP 503 Service Unavailable
}
});
import CircuitBreaker from 'opossum';
const breaker = new CircuitBreaker(
(opts) => gamma.presentations.create(opts),
{
timeout: 30000, # 30000: 30 seconds in ms
errorThresholdPercentage: 50,
resetTimeout: 30000, # 30 seconds in ms
}
);
breaker.fallback(() => ({
error: 'Service temporarily unavailable',
retry: true,
}));
#!/bin/bash
set -euo pipefail
# prod-verify.sh
echo "Gamma Production Verification"
# Check API key
if [ -z "$GAMMA_API_KEY" ]; then
echo "FAIL: GAMMA_API_KEY not set"
exit 1
fi
# Test connection
curl -s -o /dev/null -w "%{http_code}" \
-H "Authorization: Bearer $GAMMA_API_KEY" \
https://api.gamma.app/v1/ping | grep -q "200" \ # HTTP 200 OK
&& echo "OK: API connection" \
|| echo "FAIL: API connection"
echo "Verification complete"
Proceed to gamma-upgrade-migration for version upgrades.
| Error | Cause | Resolution |
|---|---|---|
| Authentication failure | Invalid or expired credentials | Refresh tokens or re-authenticate with Go |
| Configuration conflict | Incompatible settings detected | Review and resolve conflicting parameters |
| Resource not found | Referenced resource missing | Verify resource exists and permissions are correct |
Basic usage: Apply gamma prod checklist to a standard project setup with default configuration options.
Advanced scenario: Customize gamma prod checklist for production environments with multiple constraints and team-specific requirements.