Skip to content

Commit 2033a29

Browse files
[ssr] Tiny docs fix (#1257)
1 parent ddd7ba6 commit 2033a29

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

packages/lit-dev-content/site/docs/v3/ssr/overview.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,15 @@ A number of integrations have also been published which make Lit SSR work out-of
2727
- [Lit Eleventy Plugin](https://github.com/lit/lit/tree/main/packages/labs/eleventy-plugin-lit#lit-labseleventy-plugin-lit)
2828
- [Astro integration for Lit](https://docs.astro.build/en/guides/integrations-guide/lit/)
2929
- [Rocket](https://rocket.modern-web.dev/)
30+
- Next.js pages router with [@lit-labs/nextjs](https://www.npmjs.com/package/@lit-labs/nextjs)
31+
- Nuxt 3 with [nuxt-ssr-lit](https://www.npmjs.com/package/nuxt-ssr-lit)
3032
- ...and more under development!
3133

3234
## Library status
3335

3436
This library is under active development with some notable limitations we hope to resolve:
3537

36-
- Async component work is not supported. See issues [#3219](https://github.com/lit/lit/issues/3219), [#2469](https://github.com/lit/lit/issues/2469).
38+
- Async component work is not supported. See issue [#2469](https://github.com/lit/lit/issues/2469).
3739
- Only Lit components using shadow DOM is supported. See issue [#3080](https://github.com/lit/lit/issues/3080).
38-
- Integration with other SSR frameworks are being worked on. See issues for [NextJS](https://github.com/lit/lit/issues/2391) and [Nuxt](https://github.com/lit/lit/issues/3049).
3940
- Declarative shadow DOM is not implemented in all major browsers yet, though a polyfill is available. Read more about it in [client usage](/docs/v3/ssr/client-usage#lit-components).
4041
- There are also open discussions that need to happen regarding `ElementRendererRegistry` for interop with other custom elements.

packages/lit-dev-content/site/docs/v3/ssr/server-usage.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ app.use(async (ctx) => {
192192
```js
193193
// server.js
194194
import {ModuleLoader} from '@lit-labs/ssr/lib/module-loader.js';
195+
import {RenderResultReadable} from '@lit-labs/ssr/lib/render-result-readable.js';
195196

196197
// ...
197198

@@ -205,7 +206,7 @@ app.use(async (ctx) => {
205206
const {renderTemplate} = importResult.module.namespace;
206207
const ssrResult = await renderTemplate({some: "data"});
207208
ctx.type = 'text/html';
208-
ctx.body = Readable.from(ssrResult);
209+
ctx.body = new RenderResultReadable(ssrResult);
209210
});
210211
```
211212

0 commit comments

Comments
 (0)