Skip to content
This repository has been archived by the owner on Oct 11, 2022. It is now read-only.

Server-side rendering #1394

Merged
merged 36 commits into from Sep 7, 2017
Merged

Server-side rendering #1394

merged 36 commits into from Sep 7, 2017

Commits on Aug 21, 2017

  1. Make client server-side rendering compatible

    To server-side render, we need to import our routes file in iris, i.e.
    in a Node context. The issue is that in a Node context window is
    undefined, navigator is undefined, etc. etc.
    
    I removed everything that requires window access from the import path
    when importing routes.js, while making sure the app still works as
    expected.
    
    This patch means we can `const App = require('../src/routes')` from Iris
    which sets us up to do SSR!
    mxstbr committed Aug 21, 2017
    Configuration menu
    Copy the full SHA
    0af5058 View commit details
    Browse the repository at this point in the history
  2. Make frontend Redux setup server-side renderable

    These changes make it possible to create a Redux store on the server
    with the server-side Apollo client and render our App in Node.
    mxstbr committed Aug 21, 2017
    Configuration menu
    Copy the full SHA
    f3d3ff7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8d06e4a View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2017

  1. Configuration menu
    Copy the full SHA
    7197b16 View commit details
    Browse the repository at this point in the history
  2. Refactor

    mxstbr committed Aug 23, 2017
    Configuration menu
    Copy the full SHA
    5f33a9b View commit details
    Browse the repository at this point in the history
  3. Fix src env variable

    mxstbr committed Aug 23, 2017
    Configuration menu
    Copy the full SHA
    0645bf3 View commit details
    Browse the repository at this point in the history
  4. Fix comment

    mxstbr committed Aug 23, 2017
    Configuration menu
    Copy the full SHA
    3a5f56c View commit details
    Browse the repository at this point in the history
  5. Modularization

    mxstbr committed Aug 23, 2017
    Configuration menu
    Copy the full SHA
    1c91323 View commit details
    Browse the repository at this point in the history
  6. Maybe implement rehydration?

    mxstbr committed Aug 23, 2017
    Configuration menu
    Copy the full SHA
    036aff7 View commit details
    Browse the repository at this point in the history
  7. Make it work after building

    mxstbr committed Aug 23, 2017
    Configuration menu
    Copy the full SHA
    74e1852 View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2017

  1. Swithc to localstorage memory

    mxstbr committed Aug 24, 2017
    Configuration menu
    Copy the full SHA
    c31d96c View commit details
    Browse the repository at this point in the history
  2. localstorage noop

    mxstbr committed Aug 24, 2017
    Configuration menu
    Copy the full SHA
    73e6297 View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2017

  1. Configuration menu
    Copy the full SHA
    26e4cdc View commit details
    Browse the repository at this point in the history
  2. Ignore vim .swp files

    mxstbr committed Aug 31, 2017
    Configuration menu
    Copy the full SHA
    84c2c2d View commit details
    Browse the repository at this point in the history
  3. Fix <Redirect />s

    mxstbr committed Aug 31, 2017
    Configuration menu
    Copy the full SHA
    0830fc6 View commit details
    Browse the repository at this point in the history
  4. Add rel="nofollow"

    mxstbr committed Aug 31, 2017
    Configuration menu
    Copy the full SHA
    208b984 View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2017

  1. Force fetch delay on client

    mxstbr committed Sep 1, 2017
    Configuration menu
    Copy the full SHA
    1e5b619 View commit details
    Browse the repository at this point in the history
  2. Fix some issues with SSR

    mxstbr committed Sep 1, 2017
    Configuration menu
    Copy the full SHA
    d8a3484 View commit details
    Browse the repository at this point in the history
  3. Fix window.innerHeight bug

    mxstbr committed Sep 1, 2017
    Configuration menu
    Copy the full SHA
    2411a44 View commit details
    Browse the repository at this point in the history
  4. Work around react-router bug to make SSR work

    `react-router` has a bug where a `<Link />` with just a query parameter
    in the `to` prop is treated like an absolute link, but only on the
    server by the `StaticRouter`.
    
    This works around the issue by transforming `<Link to="?thread" />` to
    `<Link to={{ search: "?thread" }} />`.
    
    Reference issue:
    remix-run/react-router#5488
    mxstbr committed Sep 1, 2017
    Configuration menu
    Copy the full SHA
    63c53ad View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2017

  1. Share apollo client options

    mxstbr committed Sep 2, 2017
    Configuration menu
    Copy the full SHA
    45da4a4 View commit details
    Browse the repository at this point in the history
  2. Convert shared options to ES5

    mxstbr committed Sep 2, 2017
    Configuration menu
    Copy the full SHA
    17ca386 View commit details
    Browse the repository at this point in the history
  3. Fix meta tags in SSR

    Duplicate meta tags are a big no-go. Since we're now server-side
    rendering we can simply remove the default meta tags from the index.html
    to get consistent meta tags everywhere.
    mxstbr committed Sep 2, 2017
    Configuration menu
    Copy the full SHA
    f192bd1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    eb0d44e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8f31eca View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2017

  1. Fix thread loading

    mxstbr committed Sep 4, 2017
    Configuration menu
    Copy the full SHA
    fd85845 View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2017

  1. Configuration menu
    Copy the full SHA
    1b1f08a View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2017

  1. Configuration menu
    Copy the full SHA
    5c945fe View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    57f2358 View commit details
    Browse the repository at this point in the history
  3. Enable ssr in dev by default

    mxstbr committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    fb6b421 View commit details
    Browse the repository at this point in the history
  4. Add docs about developing SSR

    mxstbr committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    1c274ab View commit details
    Browse the repository at this point in the history
  5. Fix .babelrc

    mxstbr committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    0fa3f74 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e55abe8 View commit details
    Browse the repository at this point in the history
  7. Fix babel

    mxstbr committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    11d04dc View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    761d1a5 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    6428c42 View commit details
    Browse the repository at this point in the history