Thinkmill / Thinkmill/keystatic
astro integration should respect base path
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.4k
- Forks
- 159
- Avg merge
- 21h 41m
- Merged PRs (30d)
- 2
Description
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
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 tracing the Astro integration's construction of the /api/keystatic endpoints and how Astro's base setting is exposed. Reproduce the issue with a site deployed under a path such as /my-site, then verify that requests target /my-site/api/keystatic/... rather than the domain root.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100