Skip to content

Commit 971d596

Browse files
committed
removed proxy
1 parent 5232cec commit 971d596

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

next.config.js

-8
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
/** @type {import('next').NextConfig} */
22
module.exports = {
33
reactStrictMode: true,
4-
async rewrites() {
5-
return [
6-
{
7-
source: '/:path*',
8-
destination: 'https://api.github.com/repos/:path*',
9-
},
10-
]
11-
},
124
}

pages/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function App() {
8282
console.log(user, repo, dir);
8383

8484
setLog('Fetching repo contents...');
85-
const zip = await downloadRepositoryContents(`${user}/${repo}/contents/${dir}`);
85+
const zip = await downloadRepositoryContents(`https://api.github.com/repos/${user}/${repo}/contents/${dir}`);
8686

8787
if (!zip) {
8888
setLog('Rate limit exceeded. Try again in a few minutes.');

0 commit comments

Comments
 (0)