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:
Giancarlo Buomprisco
2024-05-26 14:44:43 +07:00
committed by GitHub
parent f164b24786
commit 127ad5a315
5 changed files with 17 additions and 2 deletions

View File

@@ -38,8 +38,9 @@ export function BorderedNavigationMenuItem(props: {
<Link
href={props.path}
className={cn('text-sm', {
'text-primary': active,
'text-primary/80 hover:text-primary': !active,
'text-secondary-foreground': active,
'text-secondary-foreground/80 hover:text-secondary-foreground':
!active,
})}
>
<Trans i18nKey={props.label} defaults={props.label} />