diff --git a/.env.development b/.env.development index 800ec27..ac664ac 100644 --- a/.env.development +++ b/.env.development @@ -2,22 +2,16 @@ VITE_PROD = false VITE_DEV = true -#ifdef H5 # BASE_URL VITE_BASE_URL = /api # PROXY_BASE_URL # 仅H5跨域需使用proxy,其他端请直接设置 VITE_BASE_URL 即可 -VITE_PROXY_BASE_URL = http://api-catch.ranesuangyu.top +VITE_PROXY_BASE_URL = https://api-catch.ranesuangyu.top # 上传域名 VITE_UPLOAD_URL = /upload # 代理上传域名 VITE_PROXY_UPLOAD_URL = 'YOUR UPLOAD URL' -#endif -#ifndef H5 -# BASE_URL -VITE_BASE_URL = http://api-catch.ranesuangyu.top -#endif \ No newline at end of file diff --git a/.env.production b/.env.production index 387f932..8cbe740 100644 --- a/.env.production +++ b/.env.production @@ -3,7 +3,7 @@ VITE_PROD = true VITE_DEV = false # api域名 -VITE_BASE_URL = http://api-catch.ranesuangyu.top +VITE_BASE_URL = /api # 上传域名 -VITE_UPLOAD_URL = http://api-catch.ranesuangyu.top/upload +VITE_UPLOAD_URL = /upload