hex-deploy-integration

v2026.09.24

Deploy Hex integrations to Vercel, Fly.io, and Cloud Run platforms. Use when deploying Hex-powered applications to production, configuring platform-specific secrets, or setting up deployment pipelines. Trigger with phrases like "deploy hex", "hex Vercel", "hex production deploy", "hex Cloud Run", "hex Fly.io".

GitHub
安装命令
npx skhub add jeremylongshore/hex-deploy-integration
Markdown
SKILL.md

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

Prerequisites

  • An approved deployment change, secret references, project/destination allowlist, and immutable client/configuration revision.
  • Safe canary project, baselines for health/latency/quota/output assertions, and a tested rollback/cancel artifact.

Output

Produce a deployment receipt with artifact digest, environment, canary project, health/latency/quota/aggregate assertion outcomes, owner approval, rollout state, and rollback reference. Exclude SQL, output, and secrets.

Error Handling

Halt for unknown project/destination, unauthorized scope, failed canary assertion, unbounded retry, or leaked output in telemetry. Cancel affected execution and restore the previous revision rather than bypassing a gate.

Examples

artifact=sha256:opaque; env=staging; canary=proj-sandbox-12; health=pass; assertions=pass; quota=pass; rollback=release-r31 supports controlled promotion.

Resources

发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

2026年9月24日

分类

未分类

许可证

MIT

源路径

skills/.curated/hex-deploy-integration

默认分支

main

最新提交

e5a6c3b

Tree SHA

c2dc8e8