Skip to content

docs: document vercel deployment target for adl-cli - #160

Merged
edenreich merged 2 commits into
mainfrom
docs/issue-159-20260604-1804
Jun 4, 2026
Merged

edenreich merged 2 commits into
mainfrom
docs/issue-159-20260604-1804

Conversation

@claude

@claude claude Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a "Vercel" subsection to the adl-cli Deployment docs, covering spec.deployment.type: vercel and the VercelConfig fields, now that adl-cli scaffolds Vercel artifacts (inference-gateway/adl-cli#205, closes inference-gateway/adl-cli#182).

  • New "Vercel" subsection under Deployment with a VercelConfig field table (project, team, framework, runtime, regions, functions, environment) and an example manifest.
  • Documents the generated artifacts: vercel.json, .vercel/project.json, and the deploy task in Taskfile.yml, with sample rendered output (keys sorted to match the generator's toPrettyJson).
  • Notes that runtime: edge produces "runtime": "@vercel/edge" and that framework is omitted for auto-detection.
  • Lists vercel in the adl generate --deployment flag row, adds a generate example, updates the Key Features line, and adds the artifacts to the Go/Rust project-structure trees.

Verified locally: npm run lint:md, npm run format:check, and npm run build all pass.

Closes #159

@edenreich

Copy link
Copy Markdown
Contributor

@claude I think this is wrong, please check online, because we don't want to deploy nextjs framework to vercel rather we just want to deploy typescript with nodejs runtime. use /maintainer

@claude

claude Bot commented Jun 4, 2026 •

Copy link
Copy Markdown
Contributor Author

Claude finished @edenreich's task in 6m 13s —— View job


Fixed: Vercel target is now TypeScript + Node.js runtime, not Next.js

You're right, @edenreich. I checked both the adl-cli generator (PR #205) and the Vercel docs. An ADL agent is a TypeScript A2A HTTP server, so it should deploy as plain Vercel functions on the Node.js runtime — not as a Next.js app, and not on the Edge runtime.

Why the old docs were wrong (confirmed online):

  • framework: nextjs tells Vercel to build the project as a Next.js app. An A2A agent isn't one — leaving framework unset lets Vercel deploy the generated functions directly.
  • runtime: edge runs in V8 isolates with a limited API (no full Node API), so it can't run a full A2A server. Vercel's docs state nodejs is the default runtime; for a non-framework project each api/ file maps to one Node.js function.

What I changed in adl-cli.md (Vercel section):

  • Example manifest now uses runtime: nodejs and drops framework: nextjs.

  • Added a note: leave framework unset (not a framework app) and keep runtime: nodejs (Edge can't run a full A2A server).

  • Generated vercel.json sample no longer emits "framework": "nextjs" or "runtime": "@vercel/edge" — which is exactly what the template produces for runtime: nodejs with no framework.

  • Updated the framework / runtime field-table descriptions accordingly.

  • Read the current Vercel section in adl-cli.md

  • Check what adl-cli actually scaffolds (templates + schema from PR docs: update README.md to reflect VitePress tech stack #205)

  • Verify correct Vercel config online

  • Correct the documentation (example, generated vercel.json, prose, field table)

  • Run lint:md, format:check, and build — all pass

  • Commit to this PR branch (7959c64)

Heads-up: matching fix needed in adl-cli

The generator's own example still ships the same wrong config, so anyone running it reproduces the problem:

  • inference-gateway/adl-cli → examples/vercel-agent.yaml uses framework: nextjs and runtime: edge.

I didn't touch it (separate repo). Want me to open a fix: PR there to switch the example to runtime: nodejs and drop framework? The generator templates themselves are fine — they only emit those values because the example sets them.


Verified: npm run lint:md, npm run format:check, npm run build all pass.

Sources: Vercel Runtimes · Vercel Edge runtime
• docs/issue-159-20260604-1804

@edenreich
edenreich merged commit e172dbf into main Jun 4, 2026
@edenreich
edenreich deleted the docs/issue-159-20260604-1804 branch June 4, 2026 19:44
github-actions Bot pushed a commit that referenced this pull request Jun 4, 2026
## [0.6.93](0.6.92...0.6.93) (2026-06-04)

### 📚 Documentation

* document vercel deployment target for adl-cli ([#160](#160)) ([e172dbf](e172dbf))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DOCS] Document spec.deployment.type: vercel for adl-cli [FEATURE] Generate Vercel deployment artifacts from ADL spec.deployment.vercel

1 participant