-
Notifications
You must be signed in to change notification settings - Fork 1
allow private repo #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
no token for public. token needed for private.
|
@ryofujimura is attempting to deploy a commit to the nuotsu Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@ryofujimura i thiiink there might be a minor security flaw here since it exposes the personal access token in the iframe src URL:
Also, for future commits, let's use Prettier formatter to keep code preferences consistent ( |
Replace all occurrences of github-iframe.vercel.app with github-iframe-kappa.vercel.app in store.ts and README.md
- Update DOMAIN constant in store.ts to new Vercel deployment - Update all example URLs in README.md - All references now point to github-iframe-kappa.vercel.app
- Change Authorization header from 'token' to 'Bearer' format (correct GitHub API format) - Use token immediately when provided (optimized for private repos) - Improve error handling with clearer error messages - Only fallback to raw URL for public repos (private repos can't use raw URLs)
- Add function to dynamically detect repository default branch - Retry API call with explicit default branch if 404 occurs - Use correct default branch in GitHub links (not hardcoded 'main') - Improve 404 error messages with branch information - Optimize branch detection to avoid duplicate API calls
This reverts commit 4942fae.
This reverts commit 40d8fe0.
|
@ryofujimura Build error occurs 11:06:14.348
▲ Next.js 15.1.6
11:06:14.349
11:06:14.373
Creating an optimized production build ...
11:06:26.916
✓ Compiled successfully
11:06:26.921
Linting and checking validity of types ...
11:06:31.077
Collecting page data ...
11:06:33.913
Generating static pages (0/4) ...
11:06:34.768
Generating static pages (1/4)
11:06:34.769
Generating static pages (2/4)
11:06:34.769
Generating static pages (3/4)
11:06:34.769
Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error
11:06:34.769
HttpError: Bad credentials - https://docs.github.com/rest
11:06:34.769
at A (/vercel/path0/.next/server/app/(site)/page.js:17:36864)
11:06:34.769
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
11:06:34.769
at async eb (/vercel/path0/.next/server/app/(site)/page.js:18:83459)
11:06:34.769
at async u.doExecute (/vercel/path0/.next/server/app/(site)/page.js:16:7931)
11:06:34.769
Export encountered an error on /(site)/page: /, exiting the build.
11:06:34.773
⨯ Static worker exited with code: 1 and signal: null
11:06:34.809
Error: Command "npm run build" exited with 1 |


Allows user to display their private repository code.
Needs:
Github Private access token
User can obtain private access token under https://github.com/settings/tokens.