keystatic icon indicating copy to clipboard operation
keystatic copied to clipboard

Keystatic Admin Page - 404 on vercel production deployment

Open muddassirhq opened this issue 7 months ago • 0 comments

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

muddassirhq avatar May 21 '25 15:05 muddassirhq