File tree Expand file tree Collapse file tree 14 files changed +26
-28
lines changed
lowcoder-sdk-webpack-bundle
server/node-service/src/plugins Expand file tree Collapse file tree 14 files changed +26
-28
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ declare var PUBLIC_URL: string;
29
29
declare var REACT_APP_EDITION : string ;
30
30
declare var REACT_APP_LANGUAGES : string ;
31
31
declare var REACT_APP_COMMIT_ID : string ;
32
- declare var REACT_APP_API_HOST : string ;
33
- declare var LOWCODER_NODE_SERVICE_URL : string ;
32
+ declare var REACT_APP_API_SERVICE_URL : string ;
33
+ declare var REACT_APP_NODE_SERVICE_URL : string ;
34
34
declare var REACT_APP_ENV : string ;
35
35
declare var REACT_APP_BUILD_ID : string ;
36
36
declare var REACT_APP_LOG_LEVEL : string ;
Original file line number Diff line number Diff line change @@ -16,11 +16,11 @@ export const buildVars = [
16
16
defaultValue : "00000" ,
17
17
} ,
18
18
{
19
- name : "REACT_APP_API_HOST " ,
19
+ name : "REACT_APP_API_SERVICE_URL " ,
20
20
defaultValue : "" ,
21
21
} ,
22
22
{
23
- name : "LOWCODER_NODE_SERVICE_URL " ,
23
+ name : "REACT_APP_NODE_SERVICE_URL " ,
24
24
defaultValue : "" ,
25
25
} ,
26
26
{
Original file line number Diff line number Diff line change @@ -16,11 +16,11 @@ const buildVars = [
16
16
defaultValue : "00000" ,
17
17
} ,
18
18
{
19
- name : "REACT_APP_API_HOST " ,
19
+ name : "REACT_APP_API_SERVICE_URL " ,
20
20
defaultValue : "" ,
21
21
} ,
22
22
{
23
- name : "LOWCODER_NODE_SERVICE_URL " ,
23
+ name : "REACT_APP_NODE_SERVICE_URL " ,
24
24
defaultValue : "" ,
25
25
} ,
26
26
{
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ module.exports = {
102
102
plugins : [
103
103
new webpack . DefinePlugin ( {
104
104
...define ,
105
- REACT_APP_API_HOST : JSON . stringify ( apiBaseUrl ) ,
105
+ REACT_APP_API_SERVICE_URL : JSON . stringify ( apiBaseUrl ) ,
106
106
REACT_APP_BUNDLE_TYPE : JSON . stringify ( "sdk" ) ,
107
107
} ) ,
108
108
new webpack . IgnorePlugin ( {
Original file line number Diff line number Diff line change @@ -16,11 +16,11 @@ export const buildVars = [
16
16
defaultValue : "00000" ,
17
17
} ,
18
18
{
19
- name : "REACT_APP_API_HOST " ,
19
+ name : "REACT_APP_API_SERVICE_URL " ,
20
20
defaultValue : "" ,
21
21
} ,
22
22
{
23
- name : "LOWCODER_NODE_SERVICE_URL " ,
23
+ name : "REACT_APP_NODE_SERVICE_URL " ,
24
24
defaultValue : "" ,
25
25
} ,
26
26
{
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ const apiBaseUrl = "http://localhost:8000";
21
21
export const viteConfig : UserConfig = {
22
22
define : {
23
23
...define ,
24
- REACT_APP_API_HOST : JSON . stringify ( apiBaseUrl ) ,
24
+ REACT_APP_API_SERVICE_URL : JSON . stringify ( apiBaseUrl ) ,
25
25
REACT_APP_BUNDLE_TYPE : JSON . stringify ( "sdk" ) ,
26
26
} ,
27
27
assetsInclude : [ "**/*.md" ] ,
Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ declare var PUBLIC_URL: string;
35
35
declare var REACT_APP_EDITION : string ;
36
36
declare var REACT_APP_LANGUAGES : string ;
37
37
declare var REACT_APP_COMMIT_ID : string ;
38
- declare var REACT_APP_API_HOST : string ;
39
- declare var LOWCODER_NODE_SERVICE_URL : string ;
38
+ declare var REACT_APP_API_SERVICE_URL : string ;
39
+ declare var REACT_APP_NODE_SERVICE_URL : string ;
40
40
declare var REACT_APP_ENV : string ;
41
41
declare var REACT_APP_BUILD_ID : string ;
42
42
declare var REACT_APP_LOG_LEVEL : string ;
Original file line number Diff line number Diff line change @@ -51,10 +51,9 @@ export type PaginationParam = {
51
51
export const API_REQUEST_HEADERS : RawAxiosRequestHeaders = {
52
52
"Content-Type" : "application/json" ,
53
53
} ;
54
- export const SERVER_HOST = `${ REACT_APP_API_HOST ?? "" } ` ;
54
+ export const SERVER_HOST = `${ REACT_APP_API_SERVICE_URL ?? "" } ` ;
55
55
export const ASSETS_URI = ( id : string ) => `${ SERVER_HOST } /api/v1/assets/${ id } ` ;
56
56
export const USER_HEAD_UPLOAD_URL = `${ SERVER_HOST } /api/v1/users/photo` ;
57
- export const ORG_ICON_UPLOAD_URL = ( orgId : string ) =>
58
- `${ SERVER_HOST } /api/v1/organizations/${ orgId } /logo` ;
57
+ export const ORG_ICON_UPLOAD_URL = ( orgId : string ) => `${ SERVER_HOST } /api/v1/organizations/${ orgId } /logo` ;
59
58
60
59
export type ApiRequestStatus = "init" | "requesting" | "success" | "error" ;
Original file line number Diff line number Diff line change 1
- import { sdkConfig } from "./sdkConfig" ;
2
-
3
- const baseUrl = sdkConfig . baseURL || LOWCODER_NODE_SERVICE_URL || "" ;
4
- export const NPM_REGISTRY_URL = `${ baseUrl } /node-service/api/npm/registry` ;
5
- export const NPM_PLUGIN_ASSETS_BASE_URL = `${ baseUrl } /node-service/api/npm/package` ;
1
+ export const SERVER_HOST = `${ REACT_APP_API_SERVICE_URL ?? "" } ` ;
2
+ export const NPM_REGISTRY_URL = `${ SERVER_HOST } /api/npm/registry` ;
3
+ export const NPM_PLUGIN_ASSETS_BASE_URL = `${ SERVER_HOST } /api/npm/package` ;
Original file line number Diff line number Diff line change @@ -16,11 +16,11 @@ export const buildVars = [
16
16
defaultValue : "00000" ,
17
17
} ,
18
18
{
19
- name : "REACT_APP_API_HOST " ,
19
+ name : "REACT_APP_API_SERVICE_URL " ,
20
20
defaultValue : "" ,
21
21
} ,
22
22
{
23
- name : "LOWCODER_NODE_SERVICE_URL " ,
23
+ name : "REACT_APP_NODE_SERVICE_URL " ,
24
24
defaultValue : "" ,
25
25
} ,
26
26
{
Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ function hideLoading() {
32
32
33
33
debug ( `REACT_APP_EDITION: ${ REACT_APP_EDITION } ` ) ;
34
34
debug ( `REACT_APP_LANGUAGES:, ${ REACT_APP_LANGUAGES } ` ) ;
35
- debug ( `REACT_APP_API_HOST:, ${ REACT_APP_API_HOST } ` ) ;
35
+ debug ( `REACT_APP_API_SERVICE_URL:, ${ REACT_APP_API_SERVICE_URL } ` ) ;
36
+ debug ( `REACT_APP_NODE_SERVICE_URL:, ${ REACT_APP_NODE_SERVICE_URL } ` ) ;
36
37
debug ( `REACT_APP_ENV:, ${ REACT_APP_ENV } ` ) ;
37
38
debug ( `REACT_APP_LOG_LEVEL:, ${ REACT_APP_LOG_LEVEL } ` ) ;
38
39
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ export const LargeBottomResIconWrapper = styled(IconWrapper)`
64
64
function getBottomResIconInnerByUrl ( type : BottomResType , url : string ) {
65
65
let fullUrl = url ;
66
66
if ( ! fullUrl . startsWith ( "http" ) ) {
67
- fullUrl = `${ LOWCODER_NODE_SERVICE_URL !== "" ? LOWCODER_NODE_SERVICE_URL : REACT_APP_API_HOST } /node-service/plugin-icons/${ url } ` ;
67
+ fullUrl = `${ REACT_APP_NODE_SERVICE_URL !== "" ? REACT_APP_NODE_SERVICE_URL : REACT_APP_API_SERVICE_URL } /node-service/plugin-icons/${ url } ` ;
68
68
}
69
69
return < img style = { { width : "100%" , height : "100%" } } src = { fullUrl } alt = "" /> ;
70
70
}
Original file line number Diff line number Diff line change @@ -16,11 +16,11 @@ export const buildVars = [
16
16
defaultValue : "00000" ,
17
17
} ,
18
18
{
19
- name : "REACT_APP_API_HOST " ,
19
+ name : "REACT_APP_API_SERVICE_URL " ,
20
20
defaultValue : "" ,
21
21
} ,
22
22
{
23
- name : "LOWCODER_NODE_SERVICE_URL " ,
23
+ name : "REACT_APP_NODE_SERVICE_URL " ,
24
24
defaultValue : "" ,
25
25
} ,
26
26
{
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import couchdbPlugin from "./couchdb";
8
8
import wooCommercePlugin from "./woocommerce" ;
9
9
import openAiPlugin from "./openAi" ;
10
10
import athenaPlugin from "./athena" ;
11
- import duckdbPlugin from "./duckdb" ;
11
+ // import duckdbPlugin from "./duckdb";
12
12
import lambdaPlugin from "./lambda" ;
13
13
import googleCloudStorage from "./googleCloudStorage" ;
14
14
import stripePlugin from "./stripe" ;
@@ -43,7 +43,7 @@ let plugins: (DataSourcePlugin | DataSourcePluginFactory)[] = [
43
43
// Databases
44
44
dynamoDBPlugin ,
45
45
couchdbPlugin ,
46
- duckdbPlugin ,
46
+ // duckdbPlugin,
47
47
faunaPlugin ,
48
48
tursoPlugin ,
49
49
You can’t perform that action at this time.
0 commit comments