@taujs/create-taujs 0.1.5 → 0.1.6
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/index.js +10 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -317,8 +317,9 @@ export default defineConfig({
|
|
|
317
317
|
}),
|
|
318
318
|
// meta recommended for streaming routes for SEO/social and render timing
|
|
319
319
|
meta: {
|
|
320
|
-
title:
|
|
321
|
-
description:
|
|
320
|
+
title: "\u03C4js \u2014 Streaming",
|
|
321
|
+
description:
|
|
322
|
+
"Streaming SSR route (Suspense progressively reveals content).",
|
|
322
323
|
},
|
|
323
324
|
},
|
|
324
325
|
},
|
|
@@ -783,8 +784,13 @@ import { App } from './App';
|
|
|
783
784
|
|
|
784
785
|
export const { renderSSR, renderStream } = createRenderer({
|
|
785
786
|
appComponent: () => <App />,
|
|
786
|
-
headContent: ({ data }) => \`
|
|
787
|
-
<meta
|
|
787
|
+
headContent: ({ data, meta }) => \`
|
|
788
|
+
<title>\${meta?.title || "\u03C4js - Composing systems, not just apps"}</title>
|
|
789
|
+
<meta name="description" content="\${
|
|
790
|
+
meta?.description ||
|
|
791
|
+
data?.message ||
|
|
792
|
+
"\u03C4js - Composing systems, not just apps"
|
|
793
|
+
}">
|
|
788
794
|
\`,
|
|
789
795
|
enableDebug: process.env.NODE_ENV === "development",
|
|
790
796
|
});
|