feat: add dynamic rendering support to AccountPage, AdminPage, DownloadsPage, and SettingsPage components

This commit is contained in:
Julien Froidefond
2025-10-17 10:21:42 +02:00
parent 77742bbec2
commit 42738412a8
4 changed files with 8 additions and 0 deletions

View File

@@ -3,6 +3,8 @@ import { ChangePasswordForm } from "@/components/account/ChangePasswordForm";
import { UserService } from "@/lib/services/user.service";
import { redirect } from "next/navigation";
export const dynamic = 'force-dynamic';
export default async function AccountPage() {
try {
const [profile, stats] = await Promise.all([

View File

@@ -3,6 +3,8 @@ import { redirect } from "next/navigation";
import { isAdmin } from "@/lib/auth-utils";
import { AdminContent } from "@/components/admin/AdminContent";
export const dynamic = 'force-dynamic';
export default async function AdminPage() {
try {
const hasAdminAccess = await isAdmin();

View File

@@ -1,6 +1,8 @@
import { DownloadManager } from "@/components/downloads/DownloadManager";
import { withPageTiming } from "@/lib/hoc/withPageTiming";
export const dynamic = 'force-dynamic';
function DownloadsPage() {
return (
<>

View File

@@ -3,6 +3,8 @@ import { ClientSettings } from "@/components/settings/ClientSettings";
import type { Metadata } from "next";
import type { KomgaConfig, TTLConfig } from "@/types/komga";
export const dynamic = 'force-dynamic';
export const metadata: Metadata = {
title: "Préférences",
description: "Configurez vos préférences StripStream",