From 68786ee5d28b1e93fc7dcb57edabc70370d80cca Mon Sep 17 00:00:00 2001 From: booxood Date: Wed, 3 Mar 2021 12:29:40 +0800 Subject: [PATCH] fix: replace proxy --- readme-cn.md | 2 +- readme-zh.md | 2 +- readme.md | 2 +- src/gitalk.jsx | 2 +- typings/index.d.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/readme-cn.md b/readme-cn.md index ba86ef4..d7a93c8 100644 --- a/readme-cn.md +++ b/readme-cn.md @@ -182,7 +182,7 @@ import GitalkComponent from "gitalk/dist/gitalk-component"; - **proxy** `String` - Default: `https://cors-anywhere.herokuapp.com/https://github.com/login/oauth/access_token`. + Default: `https://cors-anywhere.azm.workers.dev/https://github.com/login/oauth/access_token`. GitHub oauth 请求到反向代理,为了支持 CORS。 [为什么要这样?](https://github.com/isaacs/github/issues/330) diff --git a/readme-zh.md b/readme-zh.md index 6057598..18079c1 100644 --- a/readme-zh.md +++ b/readme-zh.md @@ -177,7 +177,7 @@ import GitalkComponent from "gitalk/dist/gitalk-component"; - **proxy** `String` - Default: `https://cors-anywhere.herokuapp.com/https://github.com/login/oauth/access_token`. + Default: `https://cors-anywhere.azm.workers.dev/https://github.com/login/oauth/access_token`. GitHub oauth 請求到反向代理,為了支持 CORS。 [為什麼要這樣?](https://github.com/isaacs/github/issues/330) diff --git a/readme.md b/readme.md index 5570b62..faad80a 100644 --- a/readme.md +++ b/readme.md @@ -182,7 +182,7 @@ And use the component like - **proxy** `String` - Default: `https://cors-anywhere.herokuapp.com/https://github.com/login/oauth/access_token`. + Default: `https://cors-anywhere.azm.workers.dev/https://github.com/login/oauth/access_token`. GitHub oauth request reverse proxy for CORS. [Why need this?](https://github.com/isaacs/github/issues/330) diff --git a/src/gitalk.jsx b/src/gitalk.jsx index afe89dc..36ad183 100644 --- a/src/gitalk.jsx +++ b/src/gitalk.jsx @@ -60,7 +60,7 @@ class GitalkComponent extends Component { pagerDirection: 'last', // last or first createIssueManually: false, distractionFreeMode: false, - proxy: 'https://cors-anywhere.herokuapp.com/https://github.com/login/oauth/access_token', + proxy: 'https://cors-anywhere.azm.workers.dev/https://github.com/login/oauth/access_token', flipMoveOptions: { staggerDelayBy: 150, appearAnimation: 'accordionVertical', diff --git a/typings/index.d.ts b/typings/index.d.ts index 82b5cb9..20e78f5 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -136,7 +136,7 @@ declare namespace Gitalk { * GitHub oauth request reverse proxy for CORS. * [Why need this?](https://github.com/isaacs/github/issues/330) * - * @default "https://cors-anywhere.herokuapp.com/https://github.com/login/oauth/access_token" + * @default "https://cors-anywhere.azm.workers.dev/https://github.com/login/oauth/access_token" */ proxy?: string;