Prerendering from Content Collections still adds content to SSR server code #6350
Labels
- P4: important
Violate documented behavior or significantly impacts performance (priority)
feat: ssr
Related to SSR (scope)
What version of
astro
are you using?2.0.14
Are you using an SSR adapter? If so, which one?
Deno
What package manager are you using?
npm
What operating system are you using?
Linux, Ubuntu 22.04
Describe the Bug
When prerendering content from content collections using the method described in the documentation and used in the blog example, the content of each item/page is still added to the entry.mjs file. Standard pages are prerendered to html and then not added to entry.mjs.
Duplicating the already prerendered content inside entry.mjs leads to very large server files and is in general not efficient.
See the example provided and you can see how the output from blog posts in the content folder are in entry.mjs but the content of the about.astro page is no longer included there when using prerendering.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-8mbuj5
Participation
The text was updated successfully, but these errors were encountered: