fix(frontend): make stats pages dynamic

This commit is contained in:
2025-08-07 00:07:22 +01:00
parent 0fa5da224d
commit 1a1558cfad
3 changed files with 7 additions and 0 deletions

View File

@@ -1,6 +1,8 @@
import { getCategories } from "@/lib/api"; import { getCategories } from "@/lib/api";
import Link from "next/link"; import Link from "next/link";
export const dynamic = "force-dynamic";
export default async function CategoriesPage() { export default async function CategoriesPage() {
let categories; let categories;
try { try {

View File

@@ -1,6 +1,9 @@
import Link from "next/link"; import Link from "next/link";
import { getStats } from "@/lib/api"; import { getStats } from "@/lib/api";
// Fetch fresh stats on each request
export const dynamic = "force-dynamic";
export default async function HomePage() { export default async function HomePage() {
let stats; let stats;
try { try {

View File

@@ -1,6 +1,8 @@
import { getPatterns } from "@/lib/api"; import { getPatterns } from "@/lib/api";
import Link from "next/link"; import Link from "next/link";
export const dynamic = "force-dynamic";
export default async function PatternsPage() { export default async function PatternsPage() {
let patterns; let patterns;
try { try {