Standard Deployment
Reuses the official shared backend and works out of the box. Fork the project first, then deploy with one of the methods below.
Requirements: Node.js 20.0 or higher, on macOS, Windows (including WSL), or Linux.
Local Build
# install dependencies
yarn
# local development
yarn start
# build: outputs static files to the build directory, using the defaultLocale in scripts/i18nLocales.mjs
yarn build
Build specific languages only: use
yarn build --locale <locale>(e.g.zh-Hans,en,ja… see the full locale list inscripts/i18nLocales.mjs). Chain multiple:yarn build --locale zh-Hans && yarn build --locale en.
Vercel Deployment
Click the button below for one-click deployment to Vercel:
Note: Vercel's free tier may fail due to memory limits. Deploy a single language instead — go to the project's Settings → Build & Deployment → Build Command, click Override, and set a single-language command (
yarn build --locale zh-Hansfor Chinese,yarn build --locale ptfor Portuguese, etc.).
Cloudflare Pages Deployment
First 👉 Fork this project, then deploy:
- Sign in to Cloudflare Pages and choose Create a project
- Connect the repository you just forked
- Configure the build:
- Build command:
yarn build --locale zh-Hans(swap the locale for the language you want to deploy, e.g.yarn build --locale ptfor Portuguese) - Output directory:
build
- Build command:
- Click Deploy and wait for Cloudflare Pages to finish building
Every push afterwards automatically triggers a build and deploy.
Docker Deployment
One-line deployment:
# ghcr.io
docker run -d -p 3000:3000 --name chatgpt-shortcut ghcr.io/rockbenben/chatgpt-shortcut:latest
# docker hub
docker run -d -p 3000:3000 --name chatgpt-shortcut rockben/chatgpt-shortcut:latest
Or with docker-compose:
services:
chatgpt-shortcut:
container_name: chatgpt-shortcut
image: ghcr.io/rockbenben/chatgpt-shortcut:latest
ports:
- "3000:3000"
restart: unless-stopped