Skills Engineering Deploy Hex Integrations To Cloud Platforms

Deploy Hex Integrations To Cloud Platforms

v20260423
hex-deploy-integration
This integration facilitates the deployment of Hex orchestration services to major cloud platforms like Vercel, Google Cloud Run, and Fly.io. It is essential for setting up production environments, managing platform-specific secrets (like API tokens), and automating deployment pipelines for Hex-powered applications.
Get Skill
339 downloads
Overview

Hex Deploy Integration

Overview

Deploy Hex orchestration services that trigger project runs from web endpoints or cron jobs.

Instructions

Vercel — On-Demand Data Refresh

// api/refresh.ts
export default async function handler(req, res) {
  const response = await fetch(`https://app.hex.tech/api/v1/project/${process.env.HEX_PROJECT_ID}/run`, {
    method: 'POST',
    headers: { 'Authorization': `Bearer ${process.env.HEX_API_TOKEN}`, 'Content-Type': 'application/json' },
    body: JSON.stringify({ inputParams: req.body || {}, updateCacheResult: true }),
  });
  res.json(await response.json());
}
vercel env add HEX_API_TOKEN production
vercel env add HEX_PROJECT_ID production

Cloud Run — Scheduled Orchestrator

gcloud run deploy hex-orchestrator \
  --image gcr.io/$PROJECT_ID/hex-orchestrator \
  --set-secrets=HEX_API_TOKEN=hex-api-token:latest \
  --timeout=600

Resources

Info
Category Engineering
Name hex-deploy-integration
Version v20260423
Size 1.57KB
Updated At 2026-04-28
Language