From aeff5c208c790d476660c932e2ec7f66d69a6a46 Mon Sep 17 00:00:00 2001 From: zhuba-Ahhh <3477826311@qq.com> Date: Fri, 4 Oct 2024 14:31:05 +0800 Subject: [PATCH] =?UTF-8?q?build:=20:package:=20=E7=94=9F=E4=BA=A7?= =?UTF-8?q?=E7=8E=AF=E5=A2=83api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/request.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils/request.ts b/src/utils/request.ts index 4735360..e7889ee 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -16,10 +16,10 @@ export interface Result { const service: AxiosInstance = axios.create({ // baseURL: process.env.NODE_ENV === 'production' ? 'https://api.book.bbdaxia.com/' : '/api', - baseURL: 'http://101.43.14.179:3000/novel', - // process.env.NODE_ENV === 'production' - // ? 'http://101.43.14.179:3000/novel' - // : 'http://localhost:3000/novel', + baseURL: + process.env.NODE_ENV === 'production' + ? 'https://novel-1wxqkvsm0-zhubaahhhs-projects.vercel.app//novel' + : 'http://101.43.14.179:3000/novel', timeout: 0, });