audit-hosting
Audit a Hostinger web hosting account (Shared, Cloud and Agency plans) and report what needs attention: every plan and website,…
Step 8 (deploy) of the Hostinger Headless flow. Archives the frontend source, then deploys through the connector's one-shot hosting_deploy (type nodejs — it uploads the source, runs npm install and the build on the server) with the chosen framework's build settings (appType +
Claude Code
$ npx -y skills add hostinger/api-mcp-server --skill 08-deploy --agent claude-code
Codex
$ npx skills add hostinger/api-mcp-server --skill 08-deploy -a codex -y
Cursor
$ npx skills add hostinger/api-mcp-server --skill 08-deploy -a cursor -y
Gemini CLI
$ npx skills add hostinger/api-mcp-server --skill 08-deploy -a gemini-cli -y
GitHub Copilot
$ npx skills add hostinger/api-mcp-server --skill 08-deploy -a github-copilot -y
OpenCode
$ npx skills add hostinger/api-mcp-server --skill 08-deploy -a opencode -y
Windsurf
$ npx skills add hostinger/api-mcp-server --skill 08-deploy -a windsurf -y
name: headless-step-deploy description: "Step 8 (deploy) of the Hostinger Headless flow. Archives the frontend source, then deploys through the connector's one-shot hosting_deploy (type nodejs — it uploads the source, runs npm install and the build on the server) with the chosen framework's build settings (appType + output dir) passed explicitly, polls to completion with hosting_get-deployment, verifies the live site and that the backend survived, then writes deploy.json."
Ship the frontend to the live domain through the Hostinger connector. You hand the connector a zip of the project **source** and it uploads it, runs `npm install` + the build script on the server, and serves the result. **Out:** `deploy.json`.
This is an **instance-barrier** step: run it only after `provision.status == "completed"` and validate has passed (on a first deploy that includes its dependency audit, even when the rest of validate is skipped). All operations go through the connector (`execute`).
> **Connected to the hosted server (`mcp.hostinger.com`)?** Its `hosting_deploy` deploys Git > repositories only and cannot read a local `path`. Run this step through the local > `hostinger-api-mcp` server instead (see the connect step: > `<command> <launcher>`).
> **With a shell and the Hostinger CLI installed**, the same deploy is one command, with the build > settings passed exactly as the table below says. Run it from the project, since it links the current directory: > `cd ~/.hostinger/<domain>/src && hostinger up --domain <domain> --type nodejs --app-type <appType> --output-directory <dir> --build-script build --node-version 22 --package-manager npm --message "<what this deploy changes, like a commit message>" --yes --format json`. > If it fails with `unknown flag: --message` (an older CLI), run `brew upgrade hostinger/tap/hostinger` or rerun it without `--message`. > It uploads, builds, waits and returns `data.buildUuid` and `data.buildState`; add `--no-wait` to > return at once and wait with `cd "$HOME" && node <skill>/wait.mjs build <domain> <uuid>`. Then continue at > "Verify" below. Recent CLI versions see that the site is headless (`data.headless: true`) and > deploy only its Node.js frontend, leaving `/cms` alone; still pass the settings above.
**In:** the project in `~/.hostinger/<domain>/src/`, `site.json` (`username`, `urls`), `state.json` (`frontend.framework`, `frontend.rendering`).
> ## ⚠️ The one rule that makes this work: pass build settings explicitly > If you let `hosting_deploy` **auto-detect** build settings, for a headless site that detection returns > **null** (`appType:null`, `outputDirectory:null`, Node 20) — the build "completes" but the **root > serves 403** (no `appType`/output → the vhost serves a directory with no entry). This is reproducible. > **Always pass `appType`, `outputDirectory`, `nodeVersion`, `buildScript`, `packageManager` and > `rootDirectory` on the `hosting_deploy` call** with the framework's values; the deploy then resolves > them and serves correctly, and `/cms` is preserved.
Map `frontend.framework` (from `state.json`) to its `appType` + build output directory, and pass those on the `hosting_deploy` call. `appType` is the framework's value, e.g. `next`, `nuxt`, `astro`, `svelte-kit`, `nest`, `express`, `fastify`, `react`, `create-react-app`, `gatsby`, `vite`, `vue`, `angular`, `parcel`, `svelte`, `other`.
Common cases (all `nodeVersion: 22`, `buildScript: "build"`, `packageManager: "npm"`, `rootDirectory: "."`):
| Framework / mode | Local config | `appType` | `outputDirectory` | |---|---|---|---| | **Next.js — SSR** *(default)* | `output: 'standalone'` | `next` | `.next` | | **Nuxt — SSR** | default | `nuxt` | `.output` | | **SvelteKit — SSR** | node adapter | `svelte-kit` | `build` | | **Astro — static** | `output: 'static'` | `astro` | `dist` | | **Vite / React / Vue — static (SPA)** | — | `vite` (or `react`/`vue`) | `dist` | | **Express / NestJS / Fastify — server** | — | `express`/`nest`/`fastify` | build output dir |
SSR/server frameworks run a persistent Node process (root sends `x-powered-by` / `cache-control: no-store`); static frameworks serve their output dir as files. If unsure of a framework's output dir, check the framework's own build output.
1. **Instance live (the deploy gate).** `provision.status == "completed"`, re-verified with `hosting_websites_list-setups { "domain": "<domain>" }`: deploy overwrites the site root, so it never trusts `state.json` alone. 2. **Build output exists locally** (the framework's output dir — e.g. `.next/`, `dist/`, `.output/`) and the project builds clean (frontend/validate already did this). If not, go back.
the server's glibc can't run Turbopack's native compiler, and Turbopack doesn't fall back to webpack (see `../06-frontend/SKILL.md` Step 3). On Next.js 15.x leave it as plain `next build`. Fix it here if it isn't. 3. **PocketBase: nothing under `/api` or `/_`.** The app serves no route under those prefixes, whatever its framework (Next.js `app/api/` or `pages/api/`, Nuxt `server/api/`, SvelteKit `src/routes/api/`, Astro `src/pages/api/`, an Express or Fastify route), and `src/` holds no `.pocketbase/` folder or `credentials.json`. Fix it here if it does. 4. **Env vars (only if used).** Build-time vars (e.g. `NEXT_PUBLIC_*`) must be set **before** the build with `hosting_nodejs_replace-environment-variables` (full replace: list the current keys first and send the complete set). Never put secrets in the repo or the archive. On PocketBase, server-side superuser work reads `PB_URL`, `PB_SUPERUSER_EMAIL` and `PB_SUPERUSER_PASSWORD` from here (the values come from `~/.hostinger/<domain>/.pocketbase/credentials.json`, never from the archive).
Zip the project
Audit a Hostinger web hosting account (Shared, Cloud and Agency plans) and report what needs attention: every plan and website,…
Connect a custom domain to a website on Hostinger web hosting (Shared, Cloud or Agency plans) end to end: attach the domain to…
Deploy an existing project to a website on Hostinger web hosting (Shared, Cloud or Agency plans) and keep it deployed: picks the…
Orchestrator for the Hostinger Headless build flow — build and deploy a real website on the user's Hostinger account from a…
Connect step for the Hostinger Headless flow — verify Node, run the bootstrap (reach the Hostinger MCP server + OAuth sign-in),…
First build step of the Hostinger Headless flow, run right after connect. Works out where a given domain's build stands — is a…
Use when the user needs to run GitNexus CLI commands like analyze/index a repo, check status, clean the index, generate a wiki,…
Query and invoke tools on MCP servers using fastmcp list and fastmcp call. Use when you need to discover what tools a server…
Design n8n AI agents the right way. Use when building or editing any @n8n/n8n-nodes-langchain.* AI node — an AI Agent, LLM chain,…
小红书内容发布技能。支持两种发布模式:(1) 上传图文模式 - 图片+短文;(2) 写长文模式 - 长篇文章+排版模板。 支持两种输入方式:用户提供完整内容和图片/图片URL,直接发布;或提供网页URL,自动提取内容和图片。…