flexport-multi-env-setup

Featured

Configure Flexport API across dev, staging, and production environments with isolated API keys, separate webhook endpoints, and environment guards. Trigger: "flexport environments", "flexport staging", "flexport multi-env".

AI & Automation 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Flexport Multi-Environment Setup ## Overview Configure isolated Flexport environments for development, staging, and production with separate API keys, webhook endpoints, and safety guards to prevent production data access from dev. ## Instructions ### Environment Configuration ```typescript // src/config/flexport.ts interface FlexportConfig { apiKey: string; baseUrl: string; webhookSecret: string; cacheTtlMs: number; logLevel: 'debug' | 'info' | 'warn'; } const configs: Record<string, FlexportConfig> = { development: { apiKey: process.env.FLEXPORT_API_KEY_DEV!, baseUrl: 'https://api.flexport.com', // Same base, different key scope webhookSecret: process.env.FLEXPORT_WEBHOOK_SECRET_DEV!, cacheTtlMs: 30_000, // 30s in dev for fast iteration logLevel: 'debug', }, staging: { apiKey: process.env.FLEXPORT_API_KEY_STAGING!, baseUrl: 'https://api.flexport.com', webhookSecret: process.env.FLEXPORT_WEBHOOK_SECRET_STAGING!, cacheTtlMs: 60_000, logLevel: 'info', }, production: { apiKey: process.env.FLEXPORT_API_KEY!, baseUrl: 'https://api.flexport.com', webhookSecret: process.env.FLEXPORT_WEBHOOK_SECRET!, cacheTtlMs: 300_000, // 5min in prod logLevel: 'warn', }, }; export function getFlexportConfig(): FlexportConfig { const env = process.env.NODE_ENV || 'development'; const config = configs[env]; if (!config) throw new Error(`No Flexport config for env: ${env}`); if (!config.apiKey) thr...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category