You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the HTML for the SSR app's index.html is hardcoded in server.js.
<body><divid="app">${html}</div><script>// WARNING: See the following for security issues around embedding JSON in HTML:// http://redux.js.org/docs/recipes/ServerRendering.html#security-considerationswindow.__PRELOADED_STATE__=${JSON.stringify(preloadedState).replace(/</g,'\\u003c')}</script><scriptsrc="/static/bundle.js"></script></body>
It would be nice if the index.html from webpack's build output in dist/ could be reused here so as to avoid duplication. This would also help resolve #2 .
The text was updated successfully, but these errors were encountered:
thescientist13
changed the title
API for syncing client / server HTML (mounting point)
As a user I would like an API for syncing client / server HTML (root mounting point)
Sep 5, 2018
thescientist13
changed the title
As a user I would like an API for syncing client / server HTML (root mounting point)
As a user I would like an API for syncing client / server index.html
Sep 9, 2018
Currently the HTML for the SSR app's index.html is hardcoded in server.js.
It would be nice if the index.html from webpack's build output in dist/ could be reused here so as to avoid duplication. This would also help resolve #2 .
The text was updated successfully, but these errors were encountered: