From 40c782401462eb690141fc6f4b01ed805f370326 Mon Sep 17 00:00:00 2001 From: Hanxing Yang Date: Fri, 9 Aug 2024 15:02:08 +0800 Subject: [PATCH] configurable AIGC feature (#726) --- spx-gui/.env | 3 ++ .../asset/preprocessing/PreprocessModal.vue | 38 ++++++++++++++----- spx-gui/src/utils/env.ts | 6 +++ 3 files changed, 38 insertions(+), 9 deletions(-) diff --git a/spx-gui/.env b/spx-gui/.env index ffc2bf345..d1d407c4b 100644 --- a/spx-gui/.env +++ b/spx-gui/.env @@ -8,6 +8,9 @@ VITE_CASDOOR_APP_NAME="application_goplusCommunity" VITE_API_BASE_URL="/api" +# Features control +VITE_DISABLE_AIGC="false" + # This base URL is used by Vercel Edge Middleware to proxy all '/api/(.*)' requests. # The path prefix '/api' is stripped before forwarding. VERCEL_PROXIED_API_BASE_URL="https://goplus-builder.qiniu.io/api" diff --git a/spx-gui/src/components/asset/preprocessing/PreprocessModal.vue b/spx-gui/src/components/asset/preprocessing/PreprocessModal.vue index 3bfe2069a..ea42dfb89 100644 --- a/spx-gui/src/components/asset/preprocessing/PreprocessModal.vue +++ b/spx-gui/src/components/asset/preprocessing/PreprocessModal.vue @@ -1,7 +1,7 @@