Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit511ab25

Browse files
raheeliftikhar5ludomikula
authored andcommitted
added base placeholder in api endpoints
1 parent2f74ce4 commit511ab25

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎client/packages/lowcoder/src/constants/apiConstants.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const API_REQUEST_HEADERS: RawAxiosRequestHeaders = {
5252
"Content-Type":"application/json",
5353
};
5454

55-
exportconstSERVER_HOST=`${REACT_APP_API_SERVICE_URL??""}`;
55+
exportconstSERVER_HOST=`${REACT_APP_API_SERVICE_URL??""}/__LOWCODER_BASEPATH_PLACEHOLDER__`;
5656
exportconstASSETS_URI=(id:string)=>`${SERVER_HOST}/api/v1/assets/${id}`;
5757
exportconstUSER_HEAD_UPLOAD_URL=`${SERVER_HOST}/api/v1/users/photo`;
5858
exportconstORG_ICON_UPLOAD_URL=(orgId:string)=>`${SERVER_HOST}/api/v1/organizations/${orgId}/logo`;

‎client/packages/lowcoder/vite.config.mts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const isVisualizerEnabled = !!process.env.ENABLE_VISUALIZER;
2525
// the file was never created
2626
// const browserCheckFileName = `browser-check-${process.env.REACT_APP_COMMIT_ID}.js`;
2727
constbrowserCheckFileName=`browser-check.js`;
28-
constbase=ensureLastSlash("__LOWCODER_BASEPATH_PLACEHOLDER__");
28+
constbase=isDev ?ensureLastSlash(process.env.PUBLIC_URL) :ensureLastSlash("__LOWCODER_BASEPATH_PLACEHOLDER__");
2929
// const base = ensureLastSlash(process.env.PUBLIC_URL);
3030

3131
if(!apiServiceUrl&&isDev){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp