Skip to main content
在 Manus 中运行任何 Skill
一键导入
$pwd:

deco-server-functions-invoke

// How server functions (invoke) work in Deco storefronts — the generate-invoke pipeline that bridges @decocms/apps pure functions to TanStack Start createServerFn with top-level declarations. Covers the root cause of CORS issues with VTEX API calls, why createServerFn must be top-level, the three-layer architecture (apps=pure functions, start=generator, site=generated invoke), the generate-invoke.ts script, and the comparison with deco-cx/deco's Proxy+HTTP invoke. Use when debugging CORS in cart/checkout, adding new server actions, understanding why invoke calls hit VTEX directly from the browser, or setting up invoke for a new site.

$ git log --oneline --stat
stars:2
forks:1
updated:2026年5月27日 01:37
文件资源管理器
5 个文件
SKILL.md
readonly