Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a configuration file with application settings #19

Closed
koistya opened this issue Jul 28, 2016 · 1 comment
Closed

Add a configuration file with application settings #19

koistya opened this issue Jul 28, 2016 · 1 comment

Comments

@koistya
Copy link
Member

koistya commented Jul 28, 2016

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
Copy link

sc0ttwad3 commented Aug 5, 2016

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;

@koistya koistya closed this as completed Feb 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants