...
OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# optional, support http or socks proxy HTTP_PROXY=http://proxy-server:port
...
再升级 pnpm
sudo npm update -g pnpm
注:ERROR: This version of pnpm requires at least Node.js v16.14
n lastest
n v16.14
3. 启动服务
一切准备就绪后,就可以使用如下命令来启动 web 服务
# 安装依赖
$ pnpm install
# 编译
$ pnpm run build
# 启动
$ pnpm run start:prod
# 后台运行
nohup pnpm run start:prod > server.log 2>&1 &
Visit http://localhost:3000