Skip to content

Constants explained

jmarceli edited this page Jun 3, 2016 · 3 revisions

List of all constants defined inside this project:

  • __DISABLE_SSR__ - set to true if you want to deploy app without server rendering e.g. on the regular Apache server without Node capabilities
  • __SERVER__ - set this to true if 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 to false if you want to build production release of the app it will disable DevTools and other development related features
  • __DEVTOOLS__ - should be set to true if you want to use redux-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)
Clone this wiki locally