fix(apps): render every request fresh in both root layouts

Declare `dynamic = 'force-dynamic'` in the bull and bear root layouts, so no
page is prerendered or cached on the server, as the no-server-cache rule asks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Amiram_se 2026-10-05 20:06:42 +04:00
parent dcf99e6fa5
commit 64048e8224
2 changed files with 6 additions and 0 deletions

View File

@ -12,6 +12,9 @@ import { rootMetadata } from '../configs';
import { i18n } from '../i18n';
import { AppProviders } from './organisms/app-providers';
// Every request renders fresh: nothing is prerendered or cached on the server.
export const dynamic = 'force-dynamic';
export function generateMetadata(): Metadata {
return rootMetadata();
}

View File

@ -12,6 +12,9 @@ import { rootMetadata } from '../configs';
import { i18n } from '../i18n';
import { AppProviders } from './organisms/app-providers';
// Every request renders fresh: nothing is prerendered or cached on the server.
export const dynamic = 'force-dynamic';
export function generateMetadata(): Metadata {
return rootMetadata();
}