From one
Deploy One framework apps to Node servers, Vercel, Cloudflare Workers, or as static sites. Covers build, serve, cluster mode, security scanning, and platform-specific configuration.
How this skill is triggered — by the user, by Claude, or both
Slash command
/one:one-deploymentThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Official docs: [one build](https://onestack.dev/docs/one-build), [one serve](https://onestack.dev/docs/one-serve), [Configuration](https://onestack.dev/docs/configuration), [FAQ](https://onestack.dev/docs/faq)
Official docs: one build, one serve, Configuration, FAQ
# build for web (default)
one build
# build for specific platform
one build web
one build ios
one build android
Set ONE_SERVER_URL for production:
ONE_SERVER_URL=https://myapp.com one build
Output goes to dist/ with client/, server/, and api/ folders.
One uses worker threads to build static pages across CPU cores. Disable if needed:
one({ build: { workers: false } })
// or: ONE_BUILD_WORKERS=0 npx one build
One automatically scans client bundles for leaked secrets (API keys, tokens). Set to 'error' for production:
one({
build: {
securityScan: 'error', // 'warn' (default) | 'error' | false
},
})
Detects Anthropic, OpenAI, Stripe, GitHub, AWS keys, bearer tokens, and generic secret patterns.
One includes a production Hono server.
one build
one serve
For high-traffic deployments, use cluster mode to fork workers across CPU cores:
one serve --cluster # use all CPU cores
one serve --cluster=4 # use 4 workers
Each worker handles requests independently with automatic restart on crash.
When to use cluster: 200+ concurrent connections, SSR-heavy workloads, multi-core servers.
import { serve } from 'one/serve'
await serve({
port: 3000,
compress: true,
cluster: true,
loadEnv: true,
// app: customHonoApp // bring your own Hono
})
FROM node:20-slim
WORKDIR /app
COPY package.json bun.lockb ./
RUN npm install --production
COPY dist/ dist/
EXPOSE 3000
CMD ["npx", "one", "serve", "--port", "3000", "--cluster"]
one({
web: {
deploy: 'vercel',
},
})
{
"cleanUrls": true
}
cleanUrls: true is required for SSG routes to work correctly.
# auto-deploy on git push, or:
one build
vercel deploy --prebuilt
Build generates .vercel/output/ with static assets and serverless functions.
one({
web: {
deploy: 'cloudflare',
},
})
one build
cd dist
wrangler deploy
Build generates dist/worker.js and dist/wrangler.jsonc.
To customize, create wrangler.jsonc in the project root — One merges its config with yours.
For SPA or SSG sites with no server-side loaders, just serve dist/client/:
one build
npx serve dist/client
# or any static host: Netlify, GitHub Pages, S3, etc.
No one serve needed.
# required for loaders and API routes in production
ONE_SERVER_URL=https://myapp.com one build
Other env vars: PORT (default 3000), HOST (default localhost).
One integrates with existing Expo/React Native build processes:
# generate native projects
one prebuild
# build and run
one run:ios
one run:android
For CI/CD, use EAS Build — see the EAS guide.
| Scenario | Deploy Target |
|---|---|
| Full control, any cloud | 'node' (default) |
| Serverless, auto-scaling | 'vercel' |
| Edge computing, global | 'cloudflare' |
| Static site, no server | Serve dist/client/ |
Provides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
npx claudepluginhub onejs/skills --plugin one