Skip to content

Commit

Permalink
Add back locale check because we can't do SSR with different locales yet
Browse files Browse the repository at this point in the history
  • Loading branch information
Tug committed Jun 30, 2017
1 parent 3acb8ba commit b9c116d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/render/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ export function serverRender( req, res ) {
if (
config.isEnabled( 'server-side-rendering' ) &&
context.layout &&
! context.user
! context.user &&
isDefaultLocale( context.lang ) // localized SSR is currently disabled
) {
// context.pathname doesn't include querystring, so it's a suitable cache key.
let key = context.pathname;
Expand Down

0 comments on commit b9c116d

Please sign in to comment.