Skill
4
Agent
All Skills
Search
Tools
中文
|
EN
Explore
Loading...
Back to Details
vercel-functions-runtime
Compare original and translation side by side
🇺🇸
Original
English
🇨🇳
Translation
Chinese
Vercel Functions and Runtime Skill
Vercel Functions及Runtime技能
progressive_disclosure: entry_point: summary: "Vercel Functions and Edge Runtime: serverless APIs, edge execution, cron jobs, and routing middleware." when_to_use: - "When building API routes or serverless logic" - "When targeting the Edge Runtime" - "When scheduling tasks with cron jobs" quick_start: - "Create a function entry point" - "Choose the runtime (Node or Edge)" - "Configure cron schedules" - "Deploy and monitor" token_estimate: entry: 90-110 full: 3600-4700
progressive_disclosure: entry_point: summary: "Vercel Functions与Edge Runtime:无服务器API、边缘执行、cron任务及路由中间件。" when_to_use: - "构建API路由或无服务器逻辑时" - "目标为Edge Runtime时" - "使用cron任务调度任务时" quick_start: - "创建函数入口点" - "选择运行时(Node或Edge)" - "配置cron调度" - "部署并监控" token_estimate: entry: 90-110 full: 3600-4700
Overview
概述
Vercel Functions provide serverless execution for APIs and background tasks. The Edge Runtime enables low-latency execution closer to users.
Vercel Functions为API和后台任务提供无服务器执行能力。Edge Runtime可实现更贴近用户的低延迟执行。
Vercel Functions
Vercel Functions
Define serverless functions in the project structure.
Use environment variables for configuration.
Review logs for errors and performance.
在项目结构中定义无服务器函数
使用环境变量进行配置
查看日志以排查错误并监控性能
Edge Runtime
Edge Runtime
Use the Edge Runtime for low-latency execution.
Validate compatibility with the Edge runtime constraints.
使用Edge Runtime实现低延迟执行
验证与Edge运行时约束的兼容性
Cron Jobs
Cron任务
Schedule jobs with cron definitions.
Use cron for periodic maintenance tasks or sync jobs.
使用cron表达式调度任务
利用cron执行定期维护任务或同步任务
Routing and Middleware
路由与中间件
Apply routing middleware for request handling.
Use headers, rewrites, and redirects to control traffic.
应用路由中间件处理请求
使用请求头、重写和重定向控制流量
Complementary Skills
相关技能
When using this skill, consider these related skills (if deployed):
vercel-deployments-builds
: Deployment workflow and release controls.
vercel-networking-domains
: Routing, headers, and edge caching.
vercel-observability
: Logs and tracing for function debugging.
Note: Complementary skills are optional. This skill is fully functional without them.
使用本技能时,可考虑搭配以下相关技能(若已部署):
vercel-deployments-builds
:部署工作流与发布控制
vercel-networking-domains
:路由、请求头与边缘缓存
vercel-observability
:函数调试的日志与追踪
注:相关技能为可选。本技能可独立完整使用。
Resources
资源
Vercel Docs
:
Functions:
https://vercel.com/docs/functions
Edge Runtime:
https://vercel.com/docs/functions/runtimes/edge
Cron Jobs:
https://vercel.com/docs/cron-jobs
Routing Middleware:
https://vercel.com/docs/routing-middleware
Vercel文档
:
Functions:
https://vercel.com/docs/functions
Edge Runtime:
https://vercel.com/docs/functions/runtimes/edge
Cron Jobs:
https://vercel.com/docs/cron-jobs
Routing Middleware:
https://vercel.com/docs/routing-middleware