Bug description
We are using the GitBook SaaS platform and when we add a new page via the GitBook UI we notice that new content is not reflected in either /llms.txt and /llms-full.txt. We these endpoints to be dynamic (not static or cached) and reflect the content as it updated. This is really important for our customer facing support features.
How to reproduce
- Add a new page
- Check
/llms.txt
- You will notice the new page is not referenced in
llms.txt
Additional context
Relevant code - https://github.com/GitbookIO/gitbook/blob/main/packages/gitbook/src/app/sites/static/%5Bmode%5D/%5BsiteURL%5D/%5BsiteData%5D/llms.txt/route.ts
Notice the export const dynamic = 'force-static';