Skip to content

Commit 7fc1439

Browse files
committed
chore: update Next.js configuration and enhance client settings
1 parent ebb413b commit 7fc1439

4 files changed

Lines changed: 6 additions & 2 deletions

File tree

frontend/app/(app)/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
export const dynamic = 'force-dynamic'
2+
13
import { DashboardSidebar } from '@/components/dashboard-sidebar'
24
import { SidebarProvider } from '@/components/ui/sidebar'
35
import { Toaster } from '@/components/ui/sonner'

frontend/client/client.gen.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ import type { ClientOptions as ClientOptions2 } from './types.gen';
1414
export type CreateClientConfig<T extends ClientOptions = ClientOptions2> = (override?: Config<ClientOptions & T>) => Config<Required<ClientOptions> & T>;
1515

1616
export const client = createClient(createConfig<ClientOptions2>({
17-
baseUrl: 'http://localhost:8080'
17+
baseUrl: 'http://localhost:8080',
18+
credentials: 'include',
1819
}));

frontend/components/theme-provider.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ export function ThemeProvider({ children }: { children: React.ReactNode }) {
1010
defaultTheme="system"
1111
enableSystem
1212
disableTransitionOnChange
13+
storageKey="campus-life-theme"
14+
enableColorScheme={false}
1315
>
1416
{children}
1517
</NextThemesProvider>

frontend/next.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const nextConfig: NextConfig = {
1616
return [];
1717
},
1818
output: "standalone",
19-
cacheComponents: true,
2019
experimental: {
2120
webpackMemoryOptimizations: true,
2221
staleTimes: {

0 commit comments

Comments
 (0)