fix: force-dynamic on layouts — skip SSR static gen #22

Merged
kibin merged 1 commits from fix/force-dynamic-all-pages into main 2026-04-01 04:49:52 +00:00
2 changed files with 3 additions and 0 deletions
Showing only changes of commit ef6b6a3ad4 - Show all commits

View File

@@ -1,4 +1,5 @@
'use client'; 'use client';
export const dynamic = 'force-dynamic';
import { useEffect, useState } from 'react'; import { useEffect, useState } from 'react';
import { useRouter } from 'next/navigation'; import { useRouter } from 'next/navigation';

View File

@@ -6,6 +6,8 @@ import Providers from '@/components/providers';
// Fonts are loaded via CSS @import in globals.css (runtime CDN load). // Fonts are loaded via CSS @import in globals.css (runtime CDN load).
// CSS vars are set directly in globals.css :root — no JS injection needed. // CSS vars are set directly in globals.css :root — no JS injection needed.
export const dynamic = 'force-dynamic';
export const metadata: Metadata = { export const metadata: Metadata = {
title: 'FiberOps Admin', title: 'FiberOps Admin',
description: 'ISP Management Platform', description: 'ISP Management Platform',