Skip to content

Commit

Permalink
build: 📦 生产环境api
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuba-Ahhh committed Oct 4, 2024
1 parent 79cda7d commit aeff5c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utils/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ export interface Result<T = unknown> {

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,
});

Expand Down

0 comments on commit aeff5c2

Please sign in to comment.