Project Deployment

IMGPrompt is a pure static export (output: "export") and can be deployed on EdgeOne Pages, Cloudflare Pages, Vercel, or any static host.

Pick the fastest path:

  • Need zero-config hosting: use Vercel one-click.
  • Want control and easy edits: run locally.
  • Prefer containers: pull the official Docker image.

All options keep the same multi-language experience and 5,000+ prompt library.

Deployment Instructions

System Requirements:

  • Node.js 20.9 or later.
  • macOS, Windows (including WSL), and Linux are supported.

Vercel Deployment

Click the button below to deploy IMGPrompt to the Vercel platform with a single click:

Vercel

With Vercel, you can quickly host your project, and it will automatically handle building and deployment. This option is ideal for users with no complex server configuration needs.

Local Deployment

Ensure you have Node.js installed.

# Installation
yarn

# Local Development
yarn dev

# Build and start
yarn build
npx serve out

# Deploy for a single language
yarn build:lang en
yarn build:lang zh
yarn build:lang zh-hant

Open http://localhost:3000 in your browser to see the result.

Prefer another package manager? Replace yarn with pnpm or npm equivalents.

Docker Deployment

The official image ships the complete 18-language static site — no Node.js install or manual build needed, so one command gets you self-hosted on a home server or NAS:

# 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

Once the container is running, open http://localhost:5666 in your browser. To upgrade later, pull the image again and recreate the container (docker pull, then remove the old container and docker run anew).