@constela/start 1.4.1 → 1.4.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.
|
@@ -2863,7 +2863,13 @@ async function renderPageToHtml(program, params, runtimePath, cssPath, externalI
|
|
|
2863
2863
|
query: {},
|
|
2864
2864
|
path: "/"
|
|
2865
2865
|
};
|
|
2866
|
+
const metaTags = generateMetaTags(normalizedProgram.route, {
|
|
2867
|
+
params,
|
|
2868
|
+
query: {},
|
|
2869
|
+
path: "/"
|
|
2870
|
+
});
|
|
2866
2871
|
const cssLinkTag = cssPath ? `<link rel="stylesheet" href="${cssPath}">` : void 0;
|
|
2872
|
+
const head = [metaTags, cssLinkTag].filter(Boolean).join("\n") || void 0;
|
|
2867
2873
|
const widgetConfigs = widgets?.map((w) => ({ id: w.id, program: w.program }));
|
|
2868
2874
|
const hydrationScript = generateHydrationScript(normalizedProgram, widgetConfigs, routeContext);
|
|
2869
2875
|
const wrapOptions = {};
|
|
@@ -2881,7 +2887,7 @@ async function renderPageToHtml(program, params, runtimePath, cssPath, externalI
|
|
|
2881
2887
|
return wrapHtml(
|
|
2882
2888
|
content,
|
|
2883
2889
|
hydrationScript,
|
|
2884
|
-
|
|
2890
|
+
head,
|
|
2885
2891
|
Object.keys(wrapOptions).length > 0 ? wrapOptions : void 0
|
|
2886
2892
|
);
|
|
2887
2893
|
}
|
package/dist/cli/index.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constela/start",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "Meta-framework for Constela applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"@tailwindcss/postcss": "^4.0.0",
|
|
45
45
|
"tailwindcss": "^4.0.0",
|
|
46
46
|
"@constela/compiler": "0.10.0",
|
|
47
|
-
"@constela/server": "6.0.0",
|
|
48
47
|
"@constela/core": "0.10.0",
|
|
49
48
|
"@constela/router": "11.0.0",
|
|
49
|
+
"@constela/server": "6.0.0",
|
|
50
50
|
"@constela/runtime": "0.13.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|