File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ export const API_REQUEST_HEADERS: RawAxiosRequestHeaders = {
52
52
"Content-Type" : "application/json" ,
53
53
} ;
54
54
55
- export const SERVER_HOST = `${ REACT_APP_API_SERVICE_URL ?? "" } ` ;
55
+ export const SERVER_HOST = `${ REACT_APP_API_SERVICE_URL ?? "" } /__LOWCODER_BASEPATH_PLACEHOLDER__ ` ;
56
56
export const ASSETS_URI = ( id : string ) => `${ SERVER_HOST } /api/v1/assets/${ id } ` ;
57
57
export const USER_HEAD_UPLOAD_URL = `${ SERVER_HOST } /api/v1/users/photo` ;
58
58
export const ORG_ICON_UPLOAD_URL = ( orgId : string ) => `${ SERVER_HOST } /api/v1/organizations/${ orgId } /logo` ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ const isVisualizerEnabled = !!process.env.ENABLE_VISUALIZER;
25
25
// the file was never created
26
26
// const browserCheckFileName = `browser-check-${process.env.REACT_APP_COMMIT_ID}.js`;
27
27
const browserCheckFileName = `browser-check.js` ;
28
- const base = ensureLastSlash ( "__LOWCODER_BASEPATH_PLACEHOLDER__" ) ;
28
+ const base = isDev ? ensureLastSlash ( process . env . PUBLIC_URL ) : ensureLastSlash ( "__LOWCODER_BASEPATH_PLACEHOLDER__" ) ;
29
29
// const base = ensureLastSlash(process.env.PUBLIC_URL);
30
30
31
31
if ( ! apiServiceUrl && isDev ) {
You can’t perform that action at this time.
0 commit comments