Force no cache in Supabase clients with Next.js (#27)
* Update navigation menu text color and disable caching in Supabase clients Updated the active and hover text colors for the navigation menu in the UI package. Also, added prevention of any sort of caching in the Supabase clients (server-actions.client.ts, route-handler.client.ts, server-component.client.ts) to be eventually removed in Next v15. Automatic token refresh is also turned off in the server-component client. * Increase content items limit in docs loader The content items limit in the documentation loader has been increased to the maximum safe integer. This ensures that all documentation entries are retrieved from the CMS, avoiding any potential omissions due to arbitrary limits.
This commit is contained in:
committed by
GitHub
parent
f164b24786
commit
127ad5a315
@@ -8,6 +8,7 @@ export const getDocs = cache(async (language: string | undefined) => {
|
||||
const { items: pages } = await cms.getContentItems({
|
||||
collection: 'documentation',
|
||||
language,
|
||||
limit: Number.MAX_SAFE_INTEGER,
|
||||
});
|
||||
|
||||
return pages;
|
||||
|
||||
Reference in New Issue
Block a user