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ách | MCP /api/mcp | Phù 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 static | Hạ tầng agency sẵn có |
Docker
Image standalone Next.js, chạy bằng user không phải root:
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 lexihubVercel
Bấm nút Deploy with Vercel trong README, hoặc dùng CLI:
npm i -g vercel
vercel --prod # set NEXT_PUBLIC_SITE_URL=https://lexihub.tech in the project settingsCloudflare Pages
Export tĩnh rồi deploy thư mục out/:
NEXT_PUBLIC_SITE_URL=https://lexihub.tech npm run build:static
npx wrangler pages deploy out --project-name lexihubVPS HestiaCP
Cách 1 — Static (đơn giản nhất)
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)
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/.