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
{{ message }}
This repository was archived by the owner on Jul 19, 2019. It is now read-only.
Following the lesson 13 tutorial I wasn't able to render the full server side HTML for the root path ('/'). This is a very important thing for apps that relies on SEO.
The router:
The server code:
The result for the URL localhost:8080
Just as a benchmark, when requesting localhost:8080/about it works
How could I fix this issue using ReactRouter and also get the full HTML for the root path?
[UPDATE]
I was able to fix it myself.
The solution is to delete index.html from the public folder.
I suggest in the tutorial to ask the reader to delete his index.html once server side rendering is completed.
The text was updated successfully, but these errors were encountered:
I ran into this same issue. When I fixed the issue (either deleting index.html or as described in #271 ) whenever I follow any link in the app, the server is called to rerender the page.
edit: I found the problem... a missing quote mark in the renderPage() function. Oy...
Also I noticed that in project 14 webpack.server.config.js is edited and node: __dirname and __filename are set to false instead of true. I don't know why but the inconsistency is confusing.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Following the lesson 13 tutorial I wasn't able to render the full server side HTML for the root path ('/'). This is a very important thing for apps that relies on SEO.
The router:

The server code:

The result for the URL localhost:8080

Just as a benchmark, when requesting localhost:8080/about it works

How could I fix this issue using ReactRouter and also get the full HTML for the root path?
[UPDATE]
I was able to fix it myself.
The solution is to delete index.html from the public folder.
I suggest in the tutorial to ask the reader to delete his index.html once server side rendering is completed.
The text was updated successfully, but these errors were encountered: