forinda/kickjs-examples-archive/deploy
Claude Code and agent skill by forinda/kickjs-examples-archive
- community
Checking that the SKILL.md file is still in the repository.
Use when deploying this app — a Node host or Docker, Netlify, Vercel or Cloudflare Workers — or when an API route returns the SPA shell, the platform build fails, or the function is missing from a deploy.
Install
npx vskill@latest install forinda/kickjs-examples-archive/deploySKILL.md
The same SKILL.md was published earlier as forinda/kickjs-examples-archive/deploy.
A Node host or a container runs the long-running server. The project ships a Dockerfile; without Docker:
Start it with node, not kick start: the CLI is a dev dependency, gone after a production install. The image installs from the lockfile, so commit it.
Netlify and Vercel run the app as a Node function; the CLI builds both:
Both bundle src/serverless.ts: createHandler(() => import('./index')) serves the app src/index.ts describes — its bootstrap() call builds the app without listening — so there is one set of options. Add middleware and adapters to src/index.ts as usual.
Settings are detected from the layout: a workspace member beside a web package publishes web/dist and routes /api/*; an Inertia app publishes dist/client, packages the asset manifest and SSR bundle with the function, and lets it take every other path; a standalone API takes every path. Override in kick.config.ts:
include lists files the app reads at runtime; they are packaged with the function. Memory does not survive between function instances: keep sessions in session({ store: 'cookie' }) or a shared store, and data in a database.
Cloudflare Workers is a different entry, not a third flag on this one. Workers have no node:http, so createHandler cannot run there; use the web entry over h3 v2:
Two things make or break that deploy:
- Pre-bundle it yourself. Point
wrangler.jsonc'smainat a bundle
built with SWC (the same Vite + unplugin-swc setup as the other targets), never at src/worker.ts. Wrangler's own esbuild compiles decorators as ES decorators and emits no decorator metadata, so DI fails at startup with a getOwnMetadata TypeError before any request lands.
- `compatibility_flags = ["nodejs_compat"]` — request-scoped DI and
ctx.set / ctx.get ride on AsyncLocalStorage.
- Do not `import './config'` here. It is required in
src/index.tsand
src/serverless.ts, and wrong in a Worker twice over: the config module reaches for node:fs / createRequire, which kills the Worker at startup, and loadEnvFromSchema parses process.env, which Workers do not have. The env binding threaded through createFetchHandler is what feeds ConfigService.get() and @Value() instead — so values arrive as the raw strings the platform holds, without the schema's coercion or defaults. Coerce where you read them.
Not available on Workers: views, SPA/static serving, @Asset, adapters and plugins. Serve static files from Workers Assets or a separate deploy.
Red flags:
- An
/api/*route returningindex.htmlon Netlify — the function is not
routed. Check the deploy summary says a function was deployed, keep preferStatic out of a fullstack function's config, and leave Netlify's Package directory unset so it reads the function at the repo root.
- Validation errors or flash messages that vanish on Netlify / Vercel — the
session lives in one instance's memory. Use session({ store: 'cookie' }).
- Committing
.netlify/or.vercel/— both are build output. - A frontend that builds somewhere other than
web/distand only one of
deploy.staticDir, SpaAdapter({ clientDir }) and netlify.toml's publish updated. All three name that directory.
- Pointing a platform at
src/index.ts— it callsbootstrap(), which
listens on a port and registers signal handlers inside the function. The platform entry is src/serverless.ts.
- Expecting
kick buildalone to produce a deployable function; it builds
the server. Run the target command after it.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingfile-storage-api/.agents/skills/deploy/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/forinda/kickjs-examples-archive/deploy)