Thinkmill / Thinkmill/keystatic
Keystatic Admin Page - 404 on vercel production deployment
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.4k
- Forks
- 159
- Avg merge
- 21h 41m
- Merged PRs (30d)
- 2
Description
Thankyou @simonswiss and team, Keystatic is a boon for static websites.
I was using Keystatic happily in local mode, however, I needed to access my website remotely, so I switched to GitHub mode.
I successfully ran and used GitHub mode in dev environment, but when deployed, the Keystatic login page appears, but on login, the page goes 404.
My deployment service is Vercel, and I am using Vercel adapter in my Astro.js project.
before login 👆
after login 👆
Please help me fix this, I searched and tried all that was possible, but nothing worked.
I have ensured:
- .env keys in Vercel
- correct callback url in GitHub app
- correct config in Keystatic and Astro.js configs
Btw I often get a blank white page on http://localhost:4321/keystatic but it fixes after re runs or after sometime
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the production failure at the /keystatic entry point with the Astro.js Vercel adapter and GitHub mode enabled. Compare the deployed login and callback behavior with the working development setup, including the GitHub callback URL and Vercel environment keys. Done means a production GitHub login reaches the Keystatic admin page instead of returning 404.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github, typescript
- Domain
- authentication, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100