Thinkmill / Thinkmill/keystatic

Keystatic Admin Page - 404 on vercel production deployment

Open
#1,434 0 comments 0 reactions 0 assignees View on GitHub

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.

Image
before login 👆

Image
after login 👆

Please help me fix this, I searched and tried all that was possible, but nothing worked.

I have ensured:

  1. .env keys in Vercel
  2. correct callback url in GitHub app
  3. 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.