vercel-services
Configure and troubleshoot Vercel Services for multiple frontends and backends in one project. Use when composing a polyglot or multi-service application on…
от CognitionAI★ 42 звезды на GitHub
Установить vercel-services в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Vercel Services
Use the services model whenever one application is made of multiple tightly coupled components, such as a frontend plus a backend, that should deploy to one Vercel project.
Services build independently but ship together as one deployment. That buys skew protection between frontend and backend, preview environments where every service is in sync, atomic deployments and rollbacks of the whole app, and private service-to-service communication through bindings. Public traffic enters through one ordered route table.
Choose the right structure
| Need | Use |
|---|---|
| Multiple tightly coupled components, such as a frontend and a backend, that should ship as one app | Vercel Services |
| One framework can own the whole app, such as Next.js with Route Handlers | One normal Vercel project without Services |
| Teams own their services and deploy and roll back on their own cadence | Separate Vercel projects in a monorepo |
| Independently deployed frontends must render as one site | Vercel Microfrontends |
The benefits and the drawback are the same fact: every deployment ships all services together. Reach for separate projects only when you specifically need to deploy or roll back one service independently of the others.
Do not introduce Services just to split one framework into arbitrary processes. Use it when an independently built component has a real runtime, framework, dependency, or ownership reason to exist.
Define services and public ingress
Each service requires a root relative to vercel.json. Let Vercel detect the framework unless pinning it is necessary. Set entrypoint relative to the service root when the runtime needs one.
{
"services": {
"frontend": {
"root": "apps/web",
"bindings": [
{
"type": "service",
"service": "backend",
"format": "url",
"env": "BACKEND_INTERNAL_URL"
}
]
},
"backend": {
"root": "apps/backend",
"entrypoint": "main:app"
}
},
"rewrites": [
{ "source": "/api/(.*)", "destination": { "service": "backend" } },
{ "source": "/(.*)", "destination": { "service": "frontend" } }
]
}
The top-level rewrites expose the services. A service without a matching top-level rewrite is private: not reachable from the public internet, only through bindings.
Keep configuration ownership clear:
- Keep public
rewrites,redirects,headers, and other URL behavior at the top level. - Put
functions,installCommand,buildCommand,devCommand,ignoreCommand,outputDirectory, and framework settings on the service that owns them. - Put service-local
headers,redirects,rewrites, orroutesinside a service only when they should run after public ingress selects that service. - Set
runtime: "container"when a service must build from a Dockerfile or OCI image. Useentrypointfor a nonstandard Dockerfile andcommandto override the image command.
Route requests correctly
Top-level rewrites are evaluated in order. Put specific rules before the catch-all.
Routing into a service is final. If the selected service returns a 404 or 405, Vercel does not try the next top-level rewrite.
Split the URL namespace by what the frontend needs:
- Frontends without their own server routes, such as Vite or Create React App builds, let the backend own all of
/api. - Frameworks with their own API routes, such as Next.js, share the namespace: send only a sub-namespace such as
/api/v1/(.*)or specific prefixes such as/api/users/(.*)to the backend, and let the framework keep the rest.
The service receives the original request path. With the example above, GET /api/users reaches backend as /api/users, not /users. Either make the backend handle the prefix, such as FastAPI root_path, or strip it with a service-scoped rewrite:
{
"services": {
"backend": {
"root": "apps/backend",
"entrypoint": "main:app",
"rewrites": [
{ "source": "/api/:path(.*)?", "destination": "/:path" }
]
}
}
}
An SPA service that serves a static index.html, such as a Vite build, needs a service-scoped catch-all so deep links resolve:
{
"services": {
"frontend": {
"root": "apps/web",
"rewrites": [
{ "source": "/(.*)", "destination": "/index.html" }
]
}
}
}
Do not set path on a service destination. The field is accepted by the schema but has no effect at request time. Reshape paths with a service-scoped rewrite or a request.path transform in the service's own routes instead.
Serve a service on a subdomain
Host-matched top-level rewrites can put a service on its own subdomain, such as api.example.com, while the catch-all serves the frontend:
{
"rewrites": [
{
"source": "/(.*)",
"has": [{ "type": "host", "va
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл vercel-services?
Configure and troubleshoot Vercel Services for multiple frontends and backends in one project. Use when composing a polyglot or multi-service application on one Vercel deployment; defining the `services` key, service-targeted rewrites, or service bindings in `vercel.json`; or running all services with `vercel dev`.
Как установить скилл vercel-services?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл vercel-services запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…