-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Constants explained
jmarceli edited this page Jun 3, 2016
·
3 revisions
List of all constants defined inside this project:
-
__DISABLE_SSR__- set totrueif you want to deploy app without server rendering e.g. on the regular Apache server without Node capabilities -
__SERVER__- set this totrueif you want to query external API instead of just different path at you app location e.g. your custom Rails App (or any other unrelated backend) -
__CLIENT__- ??? -
__DEVELOPMENT__- set tofalseif you want to build production release of the app it will disable DevTools and other development related features -
__DEVTOOLS__- should be set totrueif you want to useredux-devtools
These constants are defined inside three files:
-
webpack/dev.config.js- used for running development server (npm run dev) -
webpack/prod.config.js- used for running production server (npm start) and for production builds (npm build) -
bin/server.js- used for running development/production server (handles server side rendering and serving app content for Webpack)