Open stefanprobst opened 5 months ago
i think this is coming from here: https://github.com/Thinkmill/keystatic/blob/a1a71c1ab2313c4c0a85fdce3f9a802a14580ece/packages/keystatic/src/app/auth.ts#L59
ok actually, the "no basepath" assumption is everywhere - made it work by patching all the /api/keystatic/*
and /keystatic/*
links and regexes in @keystatic/core
.
when deploying a site with a base path (e.g. www.example.com/my-site), the requests to the
/api/keystatic
endpoints currently don't take the base path setting into account, i.e. keystatic will try to talk to www.example.com/api/keystatic/github/refresh-token instead of www.example.com/my-site/api/keystatic/github/refresh-token