All Writing
Test admin 1
Jul 31, 2026·5 min read
GitHub Setup Guide for Admin Panel
To allow the Admin Dashboard to automatically commit your Markdown content and open Pull Requests, you need to provide a GitHub Personal Access Token (PAT). Since you are using Email/Password authentication for your Supabase login, the server relies on this token to interact with the GitHub API securely.
1. Generate a GitHub Personal Access Token
- Go to your GitHub account settings: Settings > Developer Settings > Personal access tokens > Tokens (classic).
- Click Generate new token -> Generate new token (classic).
- Give it a descriptive Note (e.g.,
jakeer.com admin dashboard). - Set the Expiration (we recommend an expiration date for security, but you will need to update it when it expires).
- Under Select scopes, check the
reposcope. This gives the token full control of private and public repositories, which is required to create branches, blobs, trees, and pull requests. - Scroll down and click Generate token.
- Copy the generated token immediately. You will not be able to see it again!
2. Add Token to Environment Variables
- Open the
.env.localfile in the root of your project directory. - Add your newly created token to the
GITHUB_TOKENvariable:
env
GITHUB_TOKEN=ghp_your_personal_access_token_here3. Verify
- Make sure your local server is running (
npm run dev). - Log in to your
/adminpanel using your email and password. - Write a test post and hit Publish to GitHub.
- If successful, you will see a green success banner with a link to your newly opened Pull Request!
Note for Deployment: When you deploy your application to Vercel (or another host), make sure to add GITHUB_TOKEN to your production Environment Variables.