Sage-Bionetworks / sage-monorepo

Where OpenChallenges, Schematic, and other Sage open source apps are built
https://sage-bionetworks.github.io/sage-monorepo/
Apache License 2.0
21 stars 12 forks source link

feat(model-ad): enable SSR #2701

Closed tschaffter closed 3 weeks ago

tschaffter commented 3 weeks ago

Description

Enable server-side rendering (SSR) for the MODEL-AD app. The configuration created by the Angular generator is replaced by the configuration used by OpenChallenges.

Changelog

References

Preview

Client-Side Rendering

When starting the app with CSR:

nx serve model-ad-app

Open the page in the browser and view the source:

image

Server-Side Rendering

Start the app with SSR:

nx serve-ssr model-ad-app

Open the page in the browser and view the source:

image