Skip to content

Commit

Permalink
fix env read error
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiram committed Mar 24, 2024
1 parent 3dffb9b commit 1748e57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/src/utils/request.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import axios, { AxiosError, AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';

const baseURL = String(import.meta.env.DEV ? '/api' : `${import.meta.env.VITE_APP_API_URL}${import.meta.env.VITE_API_URL_PREFIX}`)
const baseURL = String(import.meta.env.DEV ? '/api' : `${import.meta.env.VITE_API_URL}${import.meta.env.VITE_API_URL_PREFIX}`)

const service: AxiosInstance = axios.create({
baseURL,
Expand Down

0 comments on commit 1748e57

Please sign in to comment.