Add backend config for site ID

Users can now specify `site_domain` in `config.yml`. This is useful
when attempting to access the CMS from a different host.
This commit is contained in:
Kevin McCormack
2017-04-18 10:59:35 -04:00
parent 23c1a68a7f
commit 76bf16d62e
3 changed files with 6 additions and 4 deletions

View File

@ -17,7 +17,7 @@ export default class AuthenticationPage extends React.Component {
if (document.location.host.split(':')[0] === 'localhost') {
auth = new Authenticator({ site_id: 'cms.netlify.com' });
} else {
auth = new Authenticator();
auth = new Authenticator({ site_id: this.props.siteId });
}
auth.authenticate({ provider: 'github', scope: 'repo' }, (err, data) => {