Bỏ qua tới nội dung

Self-hosting

Tự triển khai Hub trong vài phút

Mọi trang đều được prerender. Chọn chế độ có server (Docker, Vercel, Node.js) nếu bạn cần endpoint MCP /api/mcp; chọn static export cho hosting tĩnh rẻ nhất.

CáchMCP /api/mcpPhù hợp
Docker✅VPS bất kỳ, nội bộ doanh nghiệp
Vercel✅Nhanh nhất, preview theo PR
Cloudflare Pages (tĩnh)—CDN toàn cầu, miễn phí
VPS HestiaCP✅ với Node.js · — với staticHạ tầng agency sẵn có

Docker

Image standalone Next.js, chạy bằng user không phải root:

Terminal
git clone https://github.com/tvt-ai-max/tvt-prompt-skills-hub.git
cd tvt-prompt-skills-hub
docker build --build-arg NEXT_PUBLIC_SITE_URL=https://lexihub.tech -t lexihub .
docker run -p 3000:3000 lexihub

Vercel

Bấm nút Deploy with Vercel trong README, hoặc dùng CLI:

Terminal
npm i -g vercel
vercel --prod   # set NEXT_PUBLIC_SITE_URL=https://lexihub.tech in the project settings

Cloudflare Pages

Export tĩnh rồi deploy thư mục out/:

Terminal
NEXT_PUBLIC_SITE_URL=https://lexihub.tech npm run build:static
npx wrangler pages deploy out --project-name lexihub

VPS HestiaCP

Cách 1 — Static (đơn giản nhất)

Terminal
NEXT_PUBLIC_SITE_URL=https://lexihub.tech npm run build:static
rsync -avz --delete out/ user@vps:/home/user/web/lexihub.tech/public_html/

Cách 2 — Node.js (có MCP)

Terminal
npm ci && NEXT_PUBLIC_SITE_URL=https://lexihub.tech npm run build
npx pm2 start "npm start -- -p 3000" --name lexihub
# HestiaCP: Web → Edit domain → Proxy template "nodejs" (or an nginx proxy_pass to 127.0.0.1:3000)

Biến môi trường

  • NEXT_PUBLIC_SITE_URL — URL công khai, dùng cho canonical, sitemap, JSON-LD, OpenGraph và cấu hình MCP mẫu.
  • Không cần API key hay database — nội dung nằm trong thư mục content/.