Skip to content

Commit 18613f9

Browse files
committed
feat: use cors proxy on heroku instead of now.sh
1 parent 8d14b6f commit 18613f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import wxio from 'wxio'
22

33
const isDevtools = wx.getSystemInfoSync().platform === 'devtools'
44

5-
const HACKERNEWS_API_BASE_URL = isDevtools ? `https://cors.now.sh/https://hacker-news.firebaseio.com/v0/` : 'https://tina-hackernews.lab4310.com/hn/v0/'
5+
const HACKERNEWS_API_BASE_URL = isDevtools ? `https://cors-anywhere.herokuapp.com/https://hacker-news.firebaseio.com/v0/` : 'https://tina-hackernews.lab4310.com/hn/v0/'
66
const ARTICLE_API_BASE_URL = 'https://tina-hackernews.lab4310.com/readability/'
77
const CONFIG_API_URL = 'https://tina-hackernews.lab4310.com/config'
88

0 commit comments

Comments
 (0)