| name | web-deploy |
| description | Web Deploy |
web-deploy
Build and deploy websites, web apps, and APIs to production.
Local Preview Workflow
npx http-server ./dist -p 8080 -c-1
npm run dev
npm run build && npm run start
uvicorn app.main:app --reload --port 8000
npm run dev
npm run build && npx serve dist
Deployment Targets
Vercel (Frontend / Next.js / Static)
npx vercel link
npx vercel
npx vercel --prod
npx vercel env add SECRET_KEY
Best for: Next.js apps, React SPAs, static sites, serverless functions.
Config: vercel.json (usually not needed for Next.js)
{
"buildCommand": "npm run build",
"outputDirectory": "dist",
"framework": "nextjs"
}
Railway (Backend / APIs / Databases)
railway login
railway init
railway up
railway add --plugin postgresql
railway variables set SECRET_KEY=value
railway logs
Best for: Backend APIs, databases, long-running processes, Docker containers.
GitHub Pages (Static Sites)
npm install -D gh-pages
npm run build && npm run deploy
Best for: Documentation, simple static sites, project pages.
Canvas (Clawdbot Workspace)
Deploy to ~/clawd/canvas/ for local serving through the clawdbot gateway.
cp -r ./dist/* ~/clawd/canvas/my-project/
Pre-Deploy Checklist
Rollback
npx vercel rollback
railway rollback
git revert HEAD && git push
Domain Setup
npx vercel domains add mydomain.com