/** * Server entry. * * Runs in Node, never in the browser. `render()` returns a lazy iterable of * HTML chunks rather than a finished string, which is what lets the server * stream the response instead of buffering the whole page. */ import { html } from 'lit'; import { render, type RenderResult } from '@lit-labs/ssr'; // Importing the component registers it, so the renderer can find . import './components/app-root.js'; /** * Renders the application shell for a request. * * @param _url The requested URL. Unused until routing is added, but kept in * the signature so the server contract does not change when it is. */ export function renderApp(_url: string): RenderResult { return render(html``); }