diff --git a/.github/workflows/linux-release.yml b/.github/workflows/linux-release.yml index 364b83ae..e1199421 100644 --- a/.github/workflows/linux-release.yml +++ b/.github/workflows/linux-release.yml @@ -24,7 +24,7 @@ jobs: run: | cd web npm install - REACT_APP_VERSION=$(git describe --tags) npm run build + VITE_REACT_APP_VERSION=$(git describe --tags) npm run build cd .. - name: Set up Go uses: actions/setup-go@v3 diff --git a/.github/workflows/macos-release.yml b/.github/workflows/macos-release.yml index bdd0d208..87a9a859 100644 --- a/.github/workflows/macos-release.yml +++ b/.github/workflows/macos-release.yml @@ -24,7 +24,7 @@ jobs: run: | cd web npm install - REACT_APP_VERSION=$(git describe --tags) npm run build + VITE_REACT_APP_VERSION=$(git describe --tags) npm run build cd .. - name: Set up Go uses: actions/setup-go@v3 diff --git a/.github/workflows/windows-release.yml b/.github/workflows/windows-release.yml index 33193a89..4a52b4a0 100644 --- a/.github/workflows/windows-release.yml +++ b/.github/workflows/windows-release.yml @@ -27,7 +27,7 @@ jobs: run: | cd web npm install - REACT_APP_VERSION=$(git describe --tags) npm run build + VITE_REACT_APP_VERSION=$(git describe --tags) npm run build cd .. - name: Set up Go uses: actions/setup-go@v3 diff --git a/Dockerfile b/Dockerfile index 5d56dfe1..6e808325 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ COPY ./web/package*.json ./ RUN npm ci COPY ./web . COPY ./VERSION . -RUN REACT_APP_VERSION=$(cat VERSION) npm run build +RUN VITE_REACT_APP_VERSION=$(cat VERSION) npm run build # Go build stage FROM golang AS builder2 diff --git a/README.md b/README.md index 7fd38ec3..8f92bb50 100644 --- a/README.md +++ b/README.md @@ -57,12 +57,6 @@ _✨ All in one 的 OpenAI 接口,整合各种 API 访问方式,开箱即用 > **Warning**:从 `v0.3` 版本升级到 `v0.4` 版本需要手动迁移数据库,请手动执行[数据库迁移脚本](./bin/migration_v0.3-v0.4.sql)。 -## 👍Forks 特殊功能⚡ - -1. 增强的**频道测试**以提高稳定性。 -2. 支持 **Dall-E 2 模型图像生成** API。 -3. 修复**登录页面**中缺少的 **Turnstile 验证码**。 - ## 功能 1. 支持多种 API 访问渠道: + [x] OpenAI 官方通道(支持配置镜像) diff --git a/english.dockerfile b/english.dockerfile index 9504b9e6..081557bb 100644 --- a/english.dockerfile +++ b/english.dockerfile @@ -10,7 +10,7 @@ WORKDIR /build COPY ./web/package*.json ./ RUN npm ci COPY --from=translator /app . -RUN cd web && REACT_APP_VERSION=$(cat VERSION) npm run build +RUN cd web && VITE_REACT_APP_VERSION=$(cat VERSION) npm run build # Go build stage FROM golang:1.20.5 AS goBuilder diff --git a/web/README.md b/web/README.md index 07a1fd2a..7626a4c2 100644 --- a/web/README.md +++ b/web/README.md @@ -10,8 +10,8 @@ npm start npm run build ``` -If you want to change the default server, please set `REACT_APP_SERVER` environment variables before build, -for example: `REACT_APP_SERVER=http://your.domain.com`. +If you want to change the default server, please set `VITE_REACT_APP_SERVER` environment variables before build, +for example: `VITE_REACT_APP_SERVER=http://your.domain.com`. Before you start editing, make sure your `Actions on Save` options have `Optimize imports` & `Run Prettier` enabled. diff --git a/web/public/index.html b/web/index.html similarity index 91% rename from web/public/index.html rename to web/index.html index 113c8607..4dffa3df 100644 --- a/web/public/index.html +++ b/web/index.html @@ -14,5 +14,6 @@
+