unjs/website

Remove `/api/search.txt` from every payload

Barbapapazes opened this issue · 2 comments

Environment

node

Reproduction

https://unjs.io/_payload.json

As you can see, the search content, starting by documentCount is in the payload.

Describe the bug

This is an issue since it's heavy content and it's size will increase. For every page, end user will load this content, even if he does not use the search.

Additional context

No response

Logs

No response

pi0 commented

Is this coming from content module?

Is this coming from content module?

Nop, it's because I load the /api/search.txt in the server and the content is added to the payload.