kriasoft / react-app

Create React App with server-side code support
https://t.me/reactapp
MIT License
613 stars 84 forks source link

Add a configuration file with application settings #19

Closed koistya closed 6 years ago

koistya commented 8 years ago

Add a configuration file in the root of the project tree with application settings (website URL, google analytics ID, deployment URL etc.)

config.js

image

..or, maybe it must be in docs instead?

sc0ttwad3 commented 8 years ago

Looks like this has been implemented. config.js in the root of the project contains:

/**
 * React App SDK (https://github.com/kriasoft/react-app)
 *
 * Copyright © 2015-present Kriasoft, LLC. All rights reserved.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.txt file in the root directory of this source tree.
 */

const config = {

  homepage: 'htts://www.kriasoft.com/web-app/',

  // Web analytics settings
  analytics: {
    google: { trackingID: 'UA-XXXXX-Y' },
  },

  // Deployment settings
  deployment: {
    repository: 'https://github.com/kriasoft/react-app.git',
    branch: 'gh-pages',
  },

};

module.exports = config;