Skip to content

[DOCS] Document spec.deployment.type: vercel for adl-cli #159

Closed

Description

@claude

Summary

adl-cli now scaffolds Vercel deployment artifacts when spec.deployment.type: vercel and a spec.deployment.vercel (VercelConfig) block are present. This shipped in inference-gateway/adl-cli#205 (closes inference-gateway/adl-cli#182), but the adl-cli docs page does not yet cover this third deployment target - only Kubernetes and Cloud Run are documented today.

What the feature does

  • Generates vercel.json with framework (omitted for auto-detect), regions, a functions map (memory / maxDuration), and env from vercel.environment.
  • runtime: edge maps the function config to "runtime": "@vercel/edge"; otherwise the default Node.js runtime is used.
  • Generates project linkage at .vercel/project.json (projectId from vercel.project, orgId from vercel.team).
  • Adds a deploy task to Taskfile.yml that runs vercel link / vercel pull / vercel deploy for interactive workflows.
  • Unlike kubernetes/cloudrun, Vercel deploys from source, so there is no ImageConfig block.

Affected pages

  • adl-cli.md -> "Deployment" section: add a "Vercel" subsection alongside "Kubernetes" and "Cloud Run".
  • adl-cli.md -> adl generate "Flags" table: the --deployment row currently reads kubernetes or cloudrun and should also list vercel.

Suggested content

Manifest snippet (from examples/vercel-agent.yaml):

deployment:
  type: vercel
  vercel:
    project: vercel-example
    team: my-team
    framework: nextjs    # optional - omit for auto-detection
    runtime: edge        # nodejs | edge
    regions:
      - iad1
    functions:
      memory: 1024
      maxDuration: 60
    environment:
      LOG_LEVEL: info
      ENVIRONMENT: production

Generated vercel.json:

{
  "$schema": "https://openapi.vercel.sh/vercel.json",
  "env": {
    "ENVIRONMENT": "production",
    "LOG_LEVEL": "info"
  },
  "framework": "nextjs",
  "functions": {
    "api/**/*.ts": {
      "maxDuration": 60,
      "memory": 1024,
      "runtime": "@vercel/edge"
    }
  },
  "regions": [
    "iad1"
  ]
}

Generated .vercel/project.json:

{
  "orgId": "my-team",
  "projectId": "vercel-example"
}

VercelConfig fields: project (required), team (required), framework (optional - omit for auto-detect), runtime (nodejs | edge), regions (string list), functions (memory / maxDuration), environment (string map).

References

Acceptance Criteria

  • adl-cli.md has a "Vercel" subsection under "Deployment" documenting spec.deployment.type: vercel and the VercelConfig fields.
  • The subsection lists the generated artifacts: vercel.json, .vercel/project.json, and the deploy task in Taskfile.yml.
  • The docs note that runtime: edge produces "runtime": "@vercel/edge" and that framework is omitted for auto-detection.
  • The --deployment flag row in the adl generate "Flags" table lists vercel alongside kubernetes and cloudrun.

Activity

  1. added theissue type on Jun 4, 2026
  2. added
    documentation
    on Jun 4, 2026
  3. edenreich commented on Jun 4, 2026

    @edenreich
    Contributor

    @claude Can you document this feature? use /maintainer

  4. claude commented on Jun 4, 2026

    @claude
    ContributorAuthor

    Claude finished @edenreich's task in 6m 9s —— View job • docs/issue-159-20260604-1804 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-159-20260604-1804?quick_pull=1&title=Issue%20%23159%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23159%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Documenting spec.deployment.type: vercel for adl-cli

    Done. Opened PR #160 documenting the Vercel deployment target.

    • Gather context (read adl-cli.md, verified against adl-cli PR docs: update README.md to reflect VitePress tech stack #205 templates + examples/vercel-agent.yaml)
    • Add a "Vercel" subsection under Deployment with VercelConfig fields
    • Document generated artifacts (vercel.json, .vercel/project.json, deploy task)
    • Note runtime: edge → @vercel/edge and framework auto-detect behavior
    • Update --deployment flag row to list vercel
    • Lint + format + build all pass
    • Commit & open PR

    What changed in adl-cli.md

    • New "Vercel" subsection under Deployment, with a VercelConfig field table (project, team, framework, runtime, regions, functions, environment), an example manifest, and rendered vercel.json / .vercel/project.json.
    • Documents the three generated artifacts: vercel.json, .vercel/project.json, and the deploy task in Taskfile.yml (which shells out to vercel link / pull / deploy).
    • Calls out that runtime: edge -> "runtime": "@vercel/edge" and that framework is omitted for auto-detection.
    • --deployment flag row now reads kubernetes, cloudrun, or vercel; also added a --deployment vercel generate example, updated the Key Features line, and added the Vercel artifacts to the Go/Rust project-structure trees.

    All four acceptance criteria are covered. Verified against the actual adl-cli templates (vercel.json.tmpl, project.json.tmpl, taskfile.yml.tmpl) so the documented output matches what the CLI generates.

    Note: the rendered JSON shows keys in alphabetical order to match the generator's toPrettyJson. CI checks (lint:md, format:check, build) all pass locally.
    · Branch docs/issue-159-20260604-1804 · PR #160

  5. moved this to In progress in 2026on Jun 4, 2026
  6. moved this from In progress to Done in 2026on Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions