@modern-js/app-tools 2.49.3-alpha.13 → 2.49.3-alpha.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/plugins/deploy/index.js +1 -1
- package/dist/cjs/plugins/deploy/platforms/node.js +6 -2
- package/dist/cjs/plugins/deploy/platforms/vercel.js +6 -2
- package/dist/esm/plugins/deploy/index.js +1 -1
- package/dist/esm/plugins/deploy/platforms/node.js +6 -3
- package/dist/esm/plugins/deploy/platforms/vercel.js +6 -3
- package/dist/esm-node/plugins/deploy/index.js +1 -1
- package/dist/esm-node/plugins/deploy/platforms/node.js +6 -2
- package/dist/esm-node/plugins/deploy/platforms/vercel.js +6 -2
- package/package.json +6 -6
@@ -79,7 +79,7 @@ var deploy_default = () => ({
|
|
79
79
|
dest: `/.netlify/functions/index`,
|
80
80
|
status: 200
|
81
81
|
});
|
82
|
-
throw new Error("Currently on the Netlify platform, only CSR projects are
|
82
|
+
throw new Error("Currently on the Netlify platform, only CSR projects are supported, Support for SSR and BFF projects will be available later");
|
83
83
|
}
|
84
84
|
console.log("routes", routes, needModernServer);
|
85
85
|
const redirectContent = routes.map((route) => {
|
@@ -35,17 +35,21 @@ var import_node_path = __toESM(require("node:path"));
|
|
35
35
|
var import_utils = require("@modern-js/utils");
|
36
36
|
var import_utils2 = require("../utils");
|
37
37
|
async function genNodeEntry({ config, plugins, appContext }) {
|
38
|
-
|
38
|
+
var _config_bff;
|
39
|
+
const serverConfig = {
|
39
40
|
server: {
|
40
41
|
port: 8080
|
41
42
|
},
|
43
|
+
bff: {
|
44
|
+
prefix: config === null || config === void 0 ? void 0 : (_config_bff = config.bff) === null || _config_bff === void 0 ? void 0 : _config_bff.prefix
|
45
|
+
},
|
42
46
|
output: {
|
43
47
|
path: "."
|
44
48
|
}
|
45
49
|
};
|
46
50
|
const pluginImportCode = (0, import_utils2.genPluginImportsCode)(plugins || []);
|
47
51
|
const dynamicProdOptions = {
|
48
|
-
config:
|
52
|
+
config: serverConfig,
|
49
53
|
serverConfigFile: import_utils.DEFAULT_SERVER_CONFIG,
|
50
54
|
plugins
|
51
55
|
};
|
@@ -35,14 +35,18 @@ var import_node_path = __toESM(require("node:path"));
|
|
35
35
|
var import_utils = require("@modern-js/utils");
|
36
36
|
var import_utils2 = require("../utils");
|
37
37
|
async function genVercelEntry({ config, plugins, appContext }) {
|
38
|
-
|
38
|
+
var _config_bff;
|
39
|
+
const serverConfig = {
|
40
|
+
bff: {
|
41
|
+
prefix: config === null || config === void 0 ? void 0 : (_config_bff = config.bff) === null || _config_bff === void 0 ? void 0 : _config_bff.prefix
|
42
|
+
},
|
39
43
|
output: {
|
40
44
|
path: "."
|
41
45
|
}
|
42
46
|
};
|
43
47
|
const pluginImportCode = (0, import_utils2.genPluginImportsCode)(plugins || []);
|
44
48
|
const dynamicProdOptions = {
|
45
|
-
config:
|
49
|
+
config: serverConfig,
|
46
50
|
serverConfigFile: import_utils.DEFAULT_SERVER_CONFIG,
|
47
51
|
plugins
|
48
52
|
};
|
@@ -73,7 +73,7 @@ function deploy_default() {
|
|
73
73
|
dest: "/.netlify/functions/index",
|
74
74
|
status: 200
|
75
75
|
});
|
76
|
-
throw new Error("Currently on the Netlify platform, only CSR projects are
|
76
|
+
throw new Error("Currently on the Netlify platform, only CSR projects are supported, Support for SSR and BFF projects will be available later");
|
77
77
|
}
|
78
78
|
console.log("routes", routes, needModernServer);
|
79
79
|
redirectContent = routes.map(function(route) {
|
@@ -8,22 +8,25 @@ function genNodeEntry(_) {
|
|
8
8
|
}
|
9
9
|
function _genNodeEntry() {
|
10
10
|
_genNodeEntry = _async_to_generator(function(param) {
|
11
|
-
var config, plugins, appContext,
|
11
|
+
var config, plugins, appContext, _config_bff, serverConfig, pluginImportCode, dynamicProdOptions, entryCode;
|
12
12
|
return _ts_generator(this, function(_state) {
|
13
13
|
switch (_state.label) {
|
14
14
|
case 0:
|
15
15
|
config = param.config, plugins = param.plugins, appContext = param.appContext;
|
16
|
-
|
16
|
+
serverConfig = {
|
17
17
|
server: {
|
18
18
|
port: 8080
|
19
19
|
},
|
20
|
+
bff: {
|
21
|
+
prefix: config === null || config === void 0 ? void 0 : (_config_bff = config.bff) === null || _config_bff === void 0 ? void 0 : _config_bff.prefix
|
22
|
+
},
|
20
23
|
output: {
|
21
24
|
path: "."
|
22
25
|
}
|
23
26
|
};
|
24
27
|
pluginImportCode = genPluginImportsCode(plugins || []);
|
25
28
|
dynamicProdOptions = {
|
26
|
-
config:
|
29
|
+
config: serverConfig,
|
27
30
|
serverConfigFile: DEFAULT_SERVER_CONFIG,
|
28
31
|
plugins
|
29
32
|
};
|
@@ -8,19 +8,22 @@ function genVercelEntry(_) {
|
|
8
8
|
}
|
9
9
|
function _genVercelEntry() {
|
10
10
|
_genVercelEntry = _async_to_generator(function(param) {
|
11
|
-
var config, plugins, appContext,
|
11
|
+
var config, plugins, appContext, _config_bff, serverConfig, pluginImportCode, dynamicProdOptions, entryCode;
|
12
12
|
return _ts_generator(this, function(_state) {
|
13
13
|
switch (_state.label) {
|
14
14
|
case 0:
|
15
15
|
config = param.config, plugins = param.plugins, appContext = param.appContext;
|
16
|
-
|
16
|
+
serverConfig = {
|
17
|
+
bff: {
|
18
|
+
prefix: config === null || config === void 0 ? void 0 : (_config_bff = config.bff) === null || _config_bff === void 0 ? void 0 : _config_bff.prefix
|
19
|
+
},
|
17
20
|
output: {
|
18
21
|
path: "."
|
19
22
|
}
|
20
23
|
};
|
21
24
|
pluginImportCode = genPluginImportsCode(plugins || []);
|
22
25
|
dynamicProdOptions = {
|
23
|
-
config:
|
26
|
+
config: serverConfig,
|
24
27
|
serverConfigFile: DEFAULT_SERVER_CONFIG,
|
25
28
|
plugins
|
26
29
|
};
|
@@ -46,7 +46,7 @@ var deploy_default = () => ({
|
|
46
46
|
dest: `/.netlify/functions/index`,
|
47
47
|
status: 200
|
48
48
|
});
|
49
|
-
throw new Error("Currently on the Netlify platform, only CSR projects are
|
49
|
+
throw new Error("Currently on the Netlify platform, only CSR projects are supported, Support for SSR and BFF projects will be available later");
|
50
50
|
}
|
51
51
|
console.log("routes", routes, needModernServer);
|
52
52
|
const redirectContent = routes.map((route) => {
|
@@ -2,17 +2,21 @@ import path from "node:path";
|
|
2
2
|
import { ROUTE_SPEC_FILE, DEFAULT_SERVER_CONFIG, fs as fse } from "@modern-js/utils";
|
3
3
|
import { genPluginImportsCode } from "../utils";
|
4
4
|
async function genNodeEntry({ config, plugins, appContext }) {
|
5
|
-
|
5
|
+
var _config_bff;
|
6
|
+
const serverConfig = {
|
6
7
|
server: {
|
7
8
|
port: 8080
|
8
9
|
},
|
10
|
+
bff: {
|
11
|
+
prefix: config === null || config === void 0 ? void 0 : (_config_bff = config.bff) === null || _config_bff === void 0 ? void 0 : _config_bff.prefix
|
12
|
+
},
|
9
13
|
output: {
|
10
14
|
path: "."
|
11
15
|
}
|
12
16
|
};
|
13
17
|
const pluginImportCode = genPluginImportsCode(plugins || []);
|
14
18
|
const dynamicProdOptions = {
|
15
|
-
config:
|
19
|
+
config: serverConfig,
|
16
20
|
serverConfigFile: DEFAULT_SERVER_CONFIG,
|
17
21
|
plugins
|
18
22
|
};
|
@@ -2,14 +2,18 @@ import path from "node:path";
|
|
2
2
|
import { ROUTE_SPEC_FILE, DEFAULT_SERVER_CONFIG, fs as fse } from "@modern-js/utils";
|
3
3
|
import { genPluginImportsCode } from "../utils";
|
4
4
|
async function genVercelEntry({ config, plugins, appContext }) {
|
5
|
-
|
5
|
+
var _config_bff;
|
6
|
+
const serverConfig = {
|
7
|
+
bff: {
|
8
|
+
prefix: config === null || config === void 0 ? void 0 : (_config_bff = config.bff) === null || _config_bff === void 0 ? void 0 : _config_bff.prefix
|
9
|
+
},
|
6
10
|
output: {
|
7
11
|
path: "."
|
8
12
|
}
|
9
13
|
};
|
10
14
|
const pluginImportCode = genPluginImportsCode(plugins || []);
|
11
15
|
const dynamicProdOptions = {
|
12
|
-
config:
|
16
|
+
config: serverConfig,
|
13
17
|
serverConfigFile: DEFAULT_SERVER_CONFIG,
|
14
18
|
plugins
|
15
19
|
};
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "2.49.3-alpha.
|
18
|
+
"version": "2.49.3-alpha.14",
|
19
19
|
"jsnext:source": "./src/index.ts",
|
20
20
|
"types": "./dist/types/index.d.ts",
|
21
21
|
"main": "./dist/cjs/index.js",
|
@@ -80,19 +80,19 @@
|
|
80
80
|
"mlly": "^1.6.1",
|
81
81
|
"pkg-types": "^1.1.0",
|
82
82
|
"std-env": "^3.7.0",
|
83
|
+
"@modern-js/core": "2.49.2",
|
83
84
|
"@modern-js/node-bundle-require": "2.49.2",
|
85
|
+
"@modern-js/plugin": "2.49.2",
|
84
86
|
"@modern-js/plugin-data-loader": "2.49.2",
|
85
|
-
"@modern-js/core": "2.49.2",
|
86
|
-
"@modern-js/plugin-i18n": "2.49.2",
|
87
87
|
"@modern-js/plugin-lint": "2.49.2",
|
88
|
+
"@modern-js/plugin-i18n": "2.49.2",
|
88
89
|
"@modern-js/prod-server": "2.49.2",
|
89
90
|
"@modern-js/rsbuild-plugin-esbuild": "2.49.2",
|
90
|
-
"@modern-js/plugin": "2.49.2",
|
91
|
-
"@modern-js/server": "2.49.2",
|
92
91
|
"@modern-js/server-core": "2.49.2",
|
93
|
-
"@modern-js/uni-builder": "2.49.2",
|
94
92
|
"@modern-js/server-utils": "2.49.2",
|
93
|
+
"@modern-js/uni-builder": "2.49.2",
|
95
94
|
"@modern-js/types": "2.49.2",
|
95
|
+
"@modern-js/server": "2.49.2",
|
96
96
|
"@modern-js/utils": "2.49.2"
|
97
97
|
},
|
98
98
|
"devDependencies": {
|