Add comments about __SERVER_DATA__

This commit is contained in:
MICHAEL JACKSON
2017-05-19 10:59:04 -07:00
parent 161a890623
commit 56e39f8c11
3 changed files with 5 additions and 0 deletions

View File

@ -3,6 +3,8 @@
// Do this as the first thing so that any code reading it knows the right env.
process.env.NODE_ENV = 'production';
// Use dynamic server data in production by inserting a token that will be
// replaced when the HTML page is served.
process.env.REACT_APP_SERVER_DATA = '__SERVER_DATA__';
// Load environment variables from .env file. Suppress warnings using silent