We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5232cec commit 971d596Copy full SHA for 971d596
next.config.js
@@ -1,12 +1,4 @@
1
/** @type {import('next').NextConfig} */
2
module.exports = {
3
reactStrictMode: true,
4
- async rewrites() {
5
- return [
6
- {
7
- source: '/:path*',
8
- destination: 'https://api.github.com/repos/:path*',
9
- },
10
- ]
11
12
}
pages/index.tsx
@@ -82,7 +82,7 @@ function App() {
82
console.log(user, repo, dir);
83
84
setLog('Fetching repo contents...');
85
- const zip = await downloadRepositoryContents(`${user}/${repo}/contents/${dir}`);
+ const zip = await downloadRepositoryContents(`https://api.github.com/repos/${user}/${repo}/contents/${dir}`);
86
87
if (!zip) {
88
setLog('Rate limit exceeded. Try again in a few minutes.');
0 commit comments