@modern-js/plugin-ssg 2.54.6 → 2.56.0
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/server/index.js
CHANGED
|
@@ -52,8 +52,9 @@ const createServer = (api, ssgRoutes, pageRoutes, apiRoutes, options, appDirecto
|
|
|
52
52
|
renderRoutes: ssgRoutes,
|
|
53
53
|
routes: total,
|
|
54
54
|
appContext: {
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
// Make sure that bff runs the product of the dist directory, because we dont register ts-node in the child process
|
|
56
|
+
apiDirectory: import_path.default.join(appContext.distDirectory, import_path.default.relative(appContext.appDirectory, appContext.apiDirectory)),
|
|
57
|
+
lambdaDirectory: import_path.default.join(appContext.distDirectory, import_path.default.relative(appContext.appDirectory, appContext.lambdaDirectory)),
|
|
57
58
|
appDirectory: appContext.appDirectory
|
|
58
59
|
},
|
|
59
60
|
plugins,
|
package/dist/esm/server/index.js
CHANGED
|
@@ -22,8 +22,9 @@ var createServer = function(api, ssgRoutes, pageRoutes, apiRoutes, options, appD
|
|
|
22
22
|
renderRoutes: ssgRoutes,
|
|
23
23
|
routes: total,
|
|
24
24
|
appContext: {
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
// Make sure that bff runs the product of the dist directory, because we dont register ts-node in the child process
|
|
26
|
+
apiDirectory: path.join(appContext.distDirectory, path.relative(appContext.appDirectory, appContext.apiDirectory)),
|
|
27
|
+
lambdaDirectory: path.join(appContext.distDirectory, path.relative(appContext.appDirectory, appContext.lambdaDirectory)),
|
|
27
28
|
appDirectory: appContext.appDirectory
|
|
28
29
|
},
|
|
29
30
|
plugins,
|
|
@@ -19,8 +19,9 @@ const createServer = (api, ssgRoutes, pageRoutes, apiRoutes, options, appDirecto
|
|
|
19
19
|
renderRoutes: ssgRoutes,
|
|
20
20
|
routes: total,
|
|
21
21
|
appContext: {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
// Make sure that bff runs the product of the dist directory, because we dont register ts-node in the child process
|
|
23
|
+
apiDirectory: path.join(appContext.distDirectory, path.relative(appContext.appDirectory, appContext.apiDirectory)),
|
|
24
|
+
lambdaDirectory: path.join(appContext.distDirectory, path.relative(appContext.appDirectory, appContext.lambdaDirectory)),
|
|
24
25
|
appDirectory: appContext.appDirectory
|
|
25
26
|
},
|
|
26
27
|
plugins,
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.
|
|
18
|
+
"version": "2.56.0",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/index.d.ts",
|
|
21
21
|
"main": "./dist/cjs/index.js",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"normalize-path": "3.0.0",
|
|
64
64
|
"portfinder": "^1.0.28",
|
|
65
65
|
"@swc/helpers": "0.5.3",
|
|
66
|
-
"@modern-js/utils": "2.
|
|
67
|
-
"@modern-js/prod-server": "2.
|
|
66
|
+
"@modern-js/utils": "2.56.0",
|
|
67
|
+
"@modern-js/prod-server": "2.56.0"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"react-router-dom": ">=5.1.2"
|
|
@@ -82,10 +82,10 @@
|
|
|
82
82
|
"react-dom": "^18",
|
|
83
83
|
"react-router-dom": "6.22.0",
|
|
84
84
|
"typescript": "^5",
|
|
85
|
-
"@
|
|
86
|
-
"@
|
|
87
|
-
"@
|
|
88
|
-
"@
|
|
85
|
+
"@scripts/build": "2.56.0",
|
|
86
|
+
"@modern-js/app-tools": "2.56.0",
|
|
87
|
+
"@modern-js/types": "2.56.0",
|
|
88
|
+
"@scripts/jest-config": "2.56.0"
|
|
89
89
|
},
|
|
90
90
|
"sideEffects": false,
|
|
91
91
|
"publishConfig": {
|