-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(projects): update service and proxy config
- Loading branch information
1 parent
1ef1b6b
commit 8debfe7
Showing
4 changed files
with
23 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
import { getServiceEnvConfig } from '~/.env-config'; | ||
import { createRequest } from './request'; | ||
|
||
const { url, urlPattern, secondUrl, secondUrlPattern } = getServiceEnvConfig(import.meta.env); | ||
const { url, proxyPattern } = getServiceEnvConfig(import.meta.env); | ||
|
||
const isHttpProxy = import.meta.env.VITE_HTTP_PROXY === 'Y'; | ||
|
||
export const request = createRequest({ baseURL: isHttpProxy ? urlPattern : url }); | ||
|
||
export const secondRequest = createRequest({ baseURL: isHttpProxy ? secondUrlPattern : secondUrl }); | ||
export const request = createRequest({ baseURL: isHttpProxy ? proxyPattern : url }); | ||
|
||
export const mockRequest = createRequest({ baseURL: '/mock' }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8debfe7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
soybean-admin – ./
soybean-admin-git-main-soybeanjs.vercel.app
soybean-admin-soybeanjs.vercel.app
soybean-admin-eta.vercel.app
admin.soybeanjs.cn