From 040bd28bd46e9a85ce3f24777f76379f885c6360 Mon Sep 17 00:00:00 2001 From: Jeremy Danyow Date: Wed, 3 May 2017 23:14:57 -0700 Subject: [PATCH] switch to azure --- README.md | 2 -- src/github.ts | 3 ++- src/oauth.ts | 3 ++- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 20e8c63..27e6024 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,6 @@ A lightweight comments widget using GitHub issues. * Styled with [Primer](http://primercss.io/), the css toolkit that powers GitHub. :art: * 9 KB gzipped. Vanilla TypeScript. No font downloads or script dependencies. :shipit: -> :construction: *4/30/2017 - utterances is under active development and is not ready for production use.* - ## how it works Utterances runs in an iframe. Upon load, the GitHub [issue search API](https://developer.github.com/v3/search/#search-issues) is used to find the issue associated with the page based on `url`, `pathname` or `title`. The issue's comments are displayed in the familiar GitHub style. diff --git a/src/github.ts b/src/github.ts index e4e260c..0c6ed32 100644 --- a/src/github.ts +++ b/src/github.ts @@ -5,7 +5,8 @@ const GITHUB_API = 'https://api.github.com/'; const GITHUB_ENCODING__HTML_JSON = 'application/vnd.github.VERSION.html+json'; const GITHUB_ENCODING__HTML = 'application/vnd.github.VERSION.html'; const GITHUB_ENCODING__REACTIONS_PREVIEW = 'application/vnd.github.squirrel-girl-preview'; -const UTTERANCES_API = 'https://utterances-oauth.herokuapp.com'; +// const UTTERANCES_API = 'https://utterances-oauth.herokuapp.com'; +const UTTERANCES_API = 'https://utterances-oauth.azurewebsites.net'; const PAGE_SIZE = 100; diff --git a/src/oauth.ts b/src/oauth.ts index 9296f7d..f6670c2 100644 --- a/src/oauth.ts +++ b/src/oauth.ts @@ -1,7 +1,8 @@ import { param, deparam } from './deparam'; const authorizeUri = 'https://github.com/login/oauth/authorize'; -const tokenUri = 'https://utterances-oauth.herokuapp.com/access-token'; +// const tokenUri = 'https://utterances-oauth.herokuapp.com/access-token'; +const tokenUri = 'https://utterances-oauth.azurewebsites.net/access-token'; // tslint:disable-next-line:variable-name const redirect_uri = 'https://utteranc.es/authorized.html'; // tslint:disable-next-line:variable-name