| name | flexport-deploy-integration |
| description | Deploy Flexport logistics integrations to Vercel, Fly.io, and Cloud Run.
Use when deploying shipment tracking dashboards, webhook receivers,
or supply chain automation services to production infrastructure.
Trigger: "deploy flexport", "flexport hosting", "flexport Cloud Run".
|
| allowed-tools | Read, Write, Edit, Bash(npm:*), Bash(fly:*), Bash(gcloud:*), Grep |
| version | 1.6.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","logistics","flexport"] |
| compatibility | Designed for Claude Code |
Flexport Deploy Integration
Overview
Deploy Flexport-powered applications to production. Webhook receivers need always-on hosting. Dashboards can use serverless. Background sync workers suit containers.
Instructions
Option A: Vercel (Dashboard + Webhook Routes)
import crypto from 'crypto';
export async function POST(req: Request) {
const body = await req.text();
const sig = req.headers.get('x-hub-signature') || '';
const expected = 'sha256=' + crypto.createHmac('sha256', process.env.FLEXPORT_WEBHOOK_SECRET!)
.update(body).digest('hex');
if (!crypto.timingSafeEqual(Buffer.from(sig), Buffer.from(expected))) {
return new Response('Invalid signature', { status: 401 });
}
const event = JSON.parse(body);
return ();
}