🙋 feature request: built-in SSR for using bundler middleware
See original GitHub issue- Add an
ssroption that, when enabled, renders React components into their including .html files, callinggetInitialProps({req})before rendering a la next.js - Extend server to call a
rendermethod on assets ifssr: true - Add a built-in
rendermethod toHTMLAssetthat traverses linked assets, finds occurrences ofReactDOM.render/createPortalin JS/JSX files, and usesReactDOMServerto render to a string and replace the contents of the HTML.
See also: #355
Issue Analytics
- State:
- Created 6 years ago
- Reactions:7
- Comments:7 (4 by maintainers)
Top Results From Across the Web
📚 API
Middleware can be used to hook into an http server (e.g. express or node http ). An example of using the Parcel middleware...
Read more >done-ssr-middleware
Express/Connect middleware for DoneJS applications. ... Start using done-ssr-middleware in your project by running `npm i ...
Read more >A curated list of awesome things related to Vue.js
WebTechSurvey.com - An extensive list of websites created with the Vue.js Javascript ... Feature Requests (Laravel + Vue Combo) by haydenbbickerton ...
Read more >The Complete Junior to Senior Web Developer Roadmap ...
This course is your step-by-step roadmap to becoming an admired and respected Senior Developer. You'll learn the most in-demand skills and topics that...
Read more >https://raw.githubusercontent.com/vuejs/awesome-vu...
[vuex-feature-scoped-structure](https://github.com/igeligel/vuex-feature- ... A Vue.js SSR boilerplate with Nuxt, Element (custom theme) and Vue Apollo.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Just would like to add that for SSR to be useful, it is quite complicated. It must:
And
parcel serveis not a production server in any way, I don’t think it should handle SSR. Maaaybe parcel would output a separated bundle suitable to run on Node that is a server with SSR for that application. But that sounds too much.The problem with this request is that Parcel is not specific to react. So we must design our features in a generic way that considers all possible frameworks.
That being said, if there is a way to have parcel enable this in a generic way so that e.g. plugins could implement SSR for react and other frameworks, that would be awesome. Let’s figure out what that looks like.