mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-01 15:46:39 +08:00
chore: update all Markdown files
This commit is contained in:
parent
567e58f69b
commit
5387990a52
@ -381,11 +381,11 @@ BASE_URL=https://chatgpt1.nextweb.fun/api/proxy
|
||||
### Local Development
|
||||
|
||||
```shell
|
||||
# 1. install nodejs and yarn first
|
||||
# 1. install nodejs and pnpm first
|
||||
# 2. config local env vars in `.env.local`
|
||||
# 3. run
|
||||
yarn install
|
||||
yarn dev
|
||||
pnpm install
|
||||
pnpm dev
|
||||
```
|
||||
|
||||
## Deployment
|
||||
|
@ -258,9 +258,9 @@ BASE_URL=https://b.nextweb.fun/api/proxy
|
||||
|
||||
### 本地开发
|
||||
|
||||
1. 安装 nodejs 18 和 yarn,具体细节请询问 ChatGPT;
|
||||
2. 执行 `yarn install && yarn dev` 即可。⚠️ 注意:此命令仅用于本地开发,不要用于部署!
|
||||
3. 如果你想本地部署,请使用 `yarn install && yarn build && yarn start` 命令,你可以配合 pm2 来守护进程,防止被杀死,详情询问 ChatGPT。
|
||||
1. 安装 nodejs 18 和 pnpm,具体细节请询问 ChatGPT;
|
||||
2. 执行 `pnpm install && pnpm dev` 即可。⚠️ 注意:此命令仅用于本地开发,不要用于部署!
|
||||
3. 如果你想本地部署,请使用 `pnpm install && pnpm build && pnpm start` 命令,你可以配合 pm2 来守护进程,防止被杀死,详情询问 ChatGPT。
|
||||
|
||||
## 部署
|
||||
|
||||
|
@ -237,9 +237,9 @@ OPENAI_API_KEY=<your api key here>
|
||||
|
||||
### ローカル開発
|
||||
|
||||
1. Node.js 18 と Yarn をインストールします。具体的な方法は ChatGPT にお尋ねください。
|
||||
2. `yarn install && yarn dev` を実行します。⚠️ 注意:このコマンドはローカル開発用であり、デプロイには使用しないでください。
|
||||
3. ローカルでデプロイしたい場合は、`yarn install && yarn build && yarn start` コマンドを使用してください。プロセスを守るために pm2 を使用することもできます。詳細は ChatGPT にお尋ねください。
|
||||
1. Node.js 18 と pnpm をインストールします。具体的な方法は ChatGPT にお尋ねください。
|
||||
2. `pnpm install && pnpm dev` を実行します。⚠️ 注意:このコマンドはローカル開発用であり、デプロイには使用しないでください。
|
||||
3. ローカルでデプロイしたい場合は、`pnpm install && pnpm build && pnpm start` コマンドを使用してください。プロセスを守るために pm2 を使用することもできます。詳細は ChatGPT にお尋ねください。
|
||||
|
||||
|
||||
## デプロイ
|
||||
|
@ -22,7 +22,7 @@
|
||||
- `NODE_VERSION=20.1`
|
||||
- `NEXT_TELEMETRY_DISABLE=1`
|
||||
- `OPENAI_API_KEY=你自己的API Key`
|
||||
- `YARN_VERSION=1.22.19`
|
||||
- `PNPM_VERSION=9.11.0`
|
||||
- `PHP_VERSION=7.4`
|
||||
|
||||
根据实际需要,可以选择填写以下选项:
|
||||
|
@ -22,7 +22,7 @@ Fork this project on GitHub, then log in to dash.cloudflare.com and go to Pages.
|
||||
- `NODE_VERSION=20.1`
|
||||
- `NEXT_TELEMETRY_DISABLE=1`
|
||||
- `OPENAI_API_KEY=your_own_API_key`
|
||||
- `YARN_VERSION=1.22.19`
|
||||
- `PNPM_VERSION=9.11.0`
|
||||
- `PHP_VERSION=7.4`
|
||||
|
||||
Optionally fill in the following based on your needs:
|
||||
|
@ -22,7 +22,7 @@ Bifurca el proyecto en Github, luego inicia sesión en dash.cloudflare.com y ve
|
||||
* `NODE_VERSION=20.1`
|
||||
* `NEXT_TELEMETRY_DISABLE=1`
|
||||
* `OPENAI_API_KEY=你自己的API Key`
|
||||
* `YARN_VERSION=1.22.19`
|
||||
* `PNPM_VERSION=9.11.0`
|
||||
* `PHP_VERSION=7.4`
|
||||
|
||||
Dependiendo de sus necesidades reales, puede completar opcionalmente las siguientes opciones:
|
||||
|
@ -20,7 +20,7 @@ GitHub でこのプロジェクトをフォークし、dash.cloudflare.com に
|
||||
- `NODE_VERSION=20.1`
|
||||
- `NEXT_TELEMETRY_DISABLE=1`
|
||||
- `OPENAI_API_KEY=your_own_API_key`
|
||||
- `YARN_VERSION=1.22.19`
|
||||
- `PNPM_VERSION=9.11.0`
|
||||
- `PHP_VERSION=7.4`
|
||||
|
||||
必要に応じて、以下の項目を入力してください:
|
||||
|
@ -21,7 +21,7 @@
|
||||
- node_version=20.1`.
|
||||
- next_telemetry_disable=1`.
|
||||
- `OPENAI_API_KEY=자신의 API 키`
|
||||
- ``yarn_version=1.22.19``
|
||||
- ``PNPM_VERSION=9.11.0``
|
||||
- ``php_version=7.4``.
|
||||
|
||||
실제 필요에 따라 다음 옵션을 선택적으로 입력합니다:
|
||||
|
@ -117,7 +117,7 @@ API KEY 有问题。余额不足。
|
||||
然而 NextJS 的兼容性比较差,在比较老的浏览器上会导致此报错,可以在编译时关闭分块编译。
|
||||
|
||||
对于 Vercel 平台,在环境变量中增加 `DISABLE_CHUNK=1`,然后重新部署即可;
|
||||
对于自行编译部署的项目,在构建时使用 `DISABLE_CHUNK=1 yarn build` 构建即可;
|
||||
对于自行编译部署的项目,在构建时使用 `DISABLE_CHUNK=1 pnpm build` 构建即可;
|
||||
对于 Docker 用户,由于 Docker 打包时已经构建完毕,所以暂不支持关闭此特性。
|
||||
|
||||
注意,关闭此特性后,用户会在第一次访问网站时加载所有资源,如果用户网络状况较差,可能会引起较长时间的白屏,从而影响用户使用体验,所以自行考虑。
|
||||
|
@ -76,7 +76,7 @@ However, Next.js has limited compatibility with older browsers, which can result
|
||||
You can disable chunking during building.
|
||||
|
||||
For Vercel platform, you can add `DISABLE_CHUNK=1` to the environment variables and redeploy.
|
||||
For self-deployed projects, you can use `DISABLE_CHUNK=1 yarn build` during the build process.
|
||||
For self-deployed projects, you can use `DISABLE_CHUNK=1 pnpm build` during the build process.
|
||||
For Docker users, as the build is already completed during packaging, disabling this feature is currently not supported.
|
||||
|
||||
Note that when you disable this feature, all resources will be loaded on the user's first visit. This may result in a longer white screen time if the user has a poor network connection, affecting the user experience. Please consider this when making a decision.
|
||||
|
@ -76,7 +76,7 @@ Next.js では、最初のホワイトスクリーンの時間を短縮するた
|
||||
ビルド時にチャンキングを無効にすることができます。
|
||||
|
||||
Vercel プラットフォームの場合は、環境変数に `DISABLE_CHUNK=1` を追加して再デプロイします。
|
||||
セルフデプロイのプロジェクトでは、ビルド時に `DISABLE_CHUNK=1 yarn build` を使用することができます。
|
||||
セルフデプロイのプロジェクトでは、ビルド時に `DISABLE_CHUNK=1 pnpm build` を使用することができます。
|
||||
Docker ユーザーの場合、ビルドはパッケージング時にすでに完了しているため、この機能を無効にすることは現在サポートされていません。
|
||||
|
||||
この機能を無効にすると、ユーザーの最初の訪問時にすべてのリソースがロードされることに注意してください。その結果、ユーザーのネットワーク接続が悪い場合、ホワイト・スクリーンの時間が長くなり、ユーザーエクスペリエンスに影響を与える可能性があります。この点を考慮の上、ご判断ください。
|
||||
|
@ -117,7 +117,7 @@ API 키에 문제가 있습니다. 잔액이 부족합니다.
|
||||
그러나 NextJS는 호환성이 좋지 않아 구형 브라우저에서 이 오류가 발생할 수 있으므로 컴파일 시 청크 컴파일을 비활성화할 수 있습니다.
|
||||
|
||||
버셀 플랫폼의 경우 환경 변수에 `DISABLE_CHUNK=1`을 추가하고 다시 배포합니다;
|
||||
자체 컴파일 및 배포한 프로젝트의 경우, 빌드 시 `DISABLE_CHUNK=1 yarn build`를 사용하여 빌드합니다;
|
||||
자체 컴파일 및 배포한 프로젝트의 경우, 빌드 시 `DISABLE_CHUNK=1 pnpm build`를 사용하여 빌드합니다;
|
||||
Docker 사용자의 경우, Docker가 프로젝트를 패키징할 때 이미 빌드하기 때문에 이 기능을 해제하는 것은 지원되지 않습니다.
|
||||
|
||||
이 기능을 끄면 사용자가 웹사이트를 처음 방문할 때 모든 리소스를 로드하므로 인터넷 연결 상태가 좋지 않은 경우 흰색 화면이 길게 표시되어 사용자 경험에 영향을 줄 수 있으므로 사용자가 직접 고려하시기 바랍니다.
|
||||
|
Loading…
Reference in New Issue
Block a user