项目部署
IMGPrompt 可部署到 CloudFlare、Vercel 或任意服务器。
部署说明
System Requirements:
- Node.js 18.18 or later.
- macOS, Windows (including WSL), and Linux are supported.
Vercel 部署
点击下方按钮,一键将 IMGPrompt 部署到 Vercel 平台:

通过 Vercel,你可以快速将项目托管,并且可以自动处理构建和部署,适合没有复杂服务器配置需求的用户。
本地部署
确保你已安装 Node.js。
# Installation(安装依赖)
yarn
# Local Development (本地开发)
yarn dev
# build and start (构建并启动)
yarn build && yarn start
# Deploy for a single language(单一语言部署)
yarn build:lang en
yarn build:lang zh
yarn build:lang zh-hant
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying src/app/[locale]/page.tsx
. The page auto-updates as you edit the file.
Docker 部署
如果你更倾向于在容器环境中运行应用程序,可以使用以下方法通过 Docker 容器运行 IMGPrompt:
# ghcr.io
docker run -d -p 5666:5666 --name imgprompt ghcr.io/rockbenben/img-prompt:latest
# docker hub
docker run -d -p 5666:5666 --name imgprompt rockben/img-prompt:latest
运行容器后,你可以在浏览器中访问 http://localhost:5666 来使用该应用。