diff --git a/.env.development b/.env.development index c2bf3b2..484d42d 100644 --- a/.env.development +++ b/.env.development @@ -6,3 +6,4 @@ VITE_APP_ENV='development' # 开发环境 VITE_API_BASE='/dev-api' +VITE_WS_URL='/dev-api' diff --git a/.env.production b/.env.production index 9cdad2b..9f099c7 100644 --- a/.env.production +++ b/.env.production @@ -6,6 +6,7 @@ VITE_APP_ENV='production' # 生产环境 VITE_API_BASE='/prod-api' +VITE_WS_URL='/prod-api' # 是否在打包时开启压缩,支持 gzip 和 brotli VITE_BUILD_COMPRESS=gzip diff --git a/.env.staging b/.env.staging index a8eb331..9cd962f 100644 --- a/.env.staging +++ b/.env.staging @@ -6,6 +6,7 @@ VITE_APP_ENV='staging' # 生产环境 VITE_API_BASE='/staging-api' +VITE_WS_URL='/staging-api' # 是否在打包时开启压缩,支持 gzip 和 brotli VITE_BUILD_COMPRESS=gzip diff --git a/index.html b/index.html index 850150a..380d53c 100644 --- a/index.html +++ b/index.html @@ -21,7 +21,7 @@ document.documentElement.classList.add("dark") } -
+