mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-12 16:55:37 +02:00
## Description **What issue are you solving (or what feature are you adding) and how are you doing it?** 1. Netris has been renamed and rebranded to Nestri. 2. New Logo and colors, plus a new Philosophy and mission(more on that later) 3. We are moving all different repos into this one - which means API, Docker, Website, Docs etc will be moved here
34 lines
765 B
TypeScript
34 lines
765 B
TypeScript
/**
|
|
* WHAT IS THIS FILE?
|
|
*
|
|
* SSR entry point, in all cases the application is rendered outside the browser, this
|
|
* entry point will be the common one.
|
|
*
|
|
* - Server (express, cloudflare...)
|
|
* - npm run start
|
|
* - npm run preview
|
|
* - npm run build
|
|
*
|
|
*/
|
|
import {
|
|
renderToStream,
|
|
type RenderToStreamOptions,
|
|
} from "@builder.io/qwik/server";
|
|
import { manifest } from "@qwik-client-manifest";
|
|
import Root from "./root";
|
|
|
|
export default function (opts: RenderToStreamOptions) {
|
|
return renderToStream(<Root />, {
|
|
manifest,
|
|
...opts,
|
|
// Use container attributes to set attributes on the html tag.
|
|
containerAttributes: {
|
|
lang: "en-us",
|
|
...opts.containerAttributes,
|
|
},
|
|
serverData: {
|
|
...opts.serverData,
|
|
},
|
|
});
|
|
}
|