deco-server-functions-invoke

Official

Bridge Deco server actions to safe RPC.

Authordecocms
Version1.0.0
Installs0

System Documentation

What problem does it solve?

The Deco server functions invoke workflow addresses a browser CORS problem by routing actions through a build-time generated server bridge, ensuring server-side execution and credentials stay hidden from the client.

Core Features & Use Cases

  • Three-layer architecture: pure functions in @decocms/apps, a generator in @decocms/start, and a generated site bridge (invoke.gen.ts) in the site.
  • Build-time code generation for top-level server functions, producing RPC-ready stubs that the TanStack Start runtime can transform.
  • Use cases include debugging CORS in cart/checkout, adding new server actions, and wiring invoke for a new Deco site.

Quick Start

Run the generate-invoke.ts script to produce the invoke.gen.ts bridge and then import ~/server/invoke.gen to use invoke.vtex.actions.* in your UI.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: deco-server-functions-invoke
Download link: https://github.com/decocms/deco-start/archive/main.zip#deco-server-functions-invoke

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.