From d8e56b07dd1ab93af754919fdf636ba6196e5622 Mon Sep 17 00:00:00 2001 From: Huang <596417202@qq.com> Date: Mon, 20 Jun 2022 11:56:05 +0800 Subject: [PATCH] =?UTF-8?q?chore-=E4=BF=AE=E6=94=B9base=5Furl=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 9 ++++++++- .env.production | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.env.development b/.env.development index d902410..800ec27 100644 --- a/.env.development +++ b/.env.development @@ -2,6 +2,7 @@ VITE_PROD = false VITE_DEV = true +#ifdef H5 # BASE_URL VITE_BASE_URL = /api @@ -13,4 +14,10 @@ VITE_PROXY_BASE_URL = http://api-catch.ranesuangyu.top VITE_UPLOAD_URL = /upload # 代理上传域名 -VITE_PROXY_UPLOAD_URL = 'YOUR UPLOAD URL' \ No newline at end of file +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 4a7c385..387f932 100644 --- a/.env.production +++ b/.env.production @@ -3,7 +3,7 @@ VITE_PROD = true VITE_DEV = false # api域名 -VITE_BASE_URL = 'YOUR API URL' +VITE_BASE_URL = http://api-catch.ranesuangyu.top # 上传域名 -VITE_UPLOAD_URL = 'YOUR UPLOAD URL' +VITE_UPLOAD_URL = http://api-catch.ranesuangyu.top/upload