<commit_before>import React from 'react';
import ReactDOMServer from 'react-dom/server';
import App from './src/components/App';
import data from './src/testData.json';

export default function serverRenderer() {
  return (req, res, next) => {
    res.status(200).render('index', {
      initialState: data.contests,
      prod: process.env.NODE_ENV === 'production',
      initialMarkup: ReactDOMServer.renderToString(<App initialContests={data.contests}/>)
    });
  }
};<commit_msg>Add production config<commit_after>import React from 'react';
import ReactDOMServer from 'react-dom/server';
import App from './src/components/App';
import data from './src/testData.json';

export default function serverRenderer() {
  return (req, res, next) => {
    res.status(200).render('index', {
      initialState: data.contests,
      prod: process.env.NODE_ENV === 'production',
      initialMarkup: ReactDOMServer.renderToStaticMarkup(<App initialContests={data.contests}/>)
    });
  }
};
{'fraction_non_alphanumeric': 0.1483739837398374, 'fraction_numerical': 0.006097560975609756, 'mean_word_length': 4.441988950276243, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5958317', 'n_tokens_mistral': 296, 'n_tokens_neox': 289, 'n_words': 68}