Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Q: how to switch off server-side rendering? #634

Closed
Dmitry-N-Medvedev opened this issue Apr 30, 2016 · 3 comments
Closed

Q: how to switch off server-side rendering? #634

Dmitry-N-Medvedev opened this issue Apr 30, 2016 · 3 comments

Comments

@Dmitry-N-Medvedev
Copy link

I desperately need this functionality to be able to produce static site.

PS: I am aware of https://github.com/koistya/react-static-boilerplate

@koistya
Copy link
Member

koistya commented May 2, 2016

I think @frenzzy is working on adding --static flag to the build script, making it generating only the static portion of the site. But that's not done yet.

If you need to switch server-side rendering, as a first step, you need to modify app.get('*', ...) middleware in server.js file to make it return the same empty HTML page for all HTTP requests.

@langpavel
Copy link
Collaborator

Why somebody wants to switch off server side rendering???

@Dmitry-N-Medvedev
Copy link
Author

Dmitry-N-Medvedev commented May 3, 2016

@langpavel,

  1. react-starter-kit is just awesome for development. awesome.
  2. big apps is not always an option. oftentimes, one has to implement just a simple app with few screens that must be exported as static html + css + js and be run solely on the client-side.

hackhat pushed a commit to hackhat/react-starter-kit that referenced this issue Sep 5, 2016
…iguration has a new key named `serverSideRendering` that can be toggled between `true` and `false`. Related to: kriasoft#642, kriasoft#634
hackhat pushed a commit to hackhat/react-starter-kit that referenced this issue Sep 5, 2016
…iguration has a new key named `serverSideRendering` that can be toggled between `true` and `false`. Related to: kriasoft#642, kriasoft#634
hackhat pushed a commit to hackhat/react-starter-kit that referenced this issue Sep 5, 2016
…iguration has a new key named `serverSideRendering` that can be toggled between `true` and `false`. Related to: kriasoft#642, kriasoft#634
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants