mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-12 16:55:37 +02:00
## Description **What(what issue does this code solve/what feature does it add):** Add a qwik project where we can add API(s) and a frontend which will be used to review and deploy to AWS our docker containers for testing. **How(how does it solve it):** 1. Initialise a qwik project at `apps/www` ## Required Checklist: - [ ] I have added any necessary documentation and comments in my code (where appropriate) - [ ] I have added tests to make sure my code runs in all contexts ## Further comments
31 lines
714 B
TypeScript
31 lines
714 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,
|
|
},
|
|
});
|
|
}
|