@flight-framework/cli 0.3.1 → 0.3.2
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/bin.js +2 -4
- package/dist/bin.js.map +1 -1
- package/dist/index.js +2 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -1017,16 +1017,14 @@ async function startSSRServer(vite, root, port, host) {
|
|
|
1017
1017
|
const Component = mod.default;
|
|
1018
1018
|
const { render } = await vite.ssrLoadModule("/src/entry-server.tsx");
|
|
1019
1019
|
if (typeof render === "function" && Component) {
|
|
1020
|
-
|
|
1021
|
-
appHtml = await render({ url, request, Component });
|
|
1020
|
+
appHtml = await render(url, { Component });
|
|
1022
1021
|
}
|
|
1023
1022
|
}
|
|
1024
1023
|
}
|
|
1025
1024
|
if (!appHtml) {
|
|
1026
1025
|
const { render } = await vite.ssrLoadModule("/src/entry-server.tsx");
|
|
1027
1026
|
if (typeof render === "function") {
|
|
1028
|
-
|
|
1029
|
-
appHtml = await render({ url, request });
|
|
1027
|
+
appHtml = await render(url);
|
|
1030
1028
|
}
|
|
1031
1029
|
}
|
|
1032
1030
|
if (appHtml) {
|