Commit b4a5879b authored by Matija Obreza's avatar Matija Obreza
Browse files

Reduce logging in SSR

parent 7d945726
Pipeline #3998 passed with stages
in 3 minutes and 10 seconds
......@@ -60,11 +60,13 @@ const prerenderer = (html) => (req, res) => {
);
const componentHTML = renderToString(InitialView);
console.log('serverCSS:', sheets.toString());
console.log('componentHTML:', componentHTML);
const initialState = store.getState();
console.log('initialState:', initialState);
if (process.env.DEBUG) {
console.log('serverCSS:', sheets.toString());
console.log('componentHTML:', componentHTML);
console.log('initialState:', initialState);
}
return html.replace('SERVER_RENDERED_HTML', componentHTML)
.replace('SERVER_RENDERED_CSS', sheets.toString())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment