added efficenciy

This commit is contained in:
Rajpreet0 2026-09-29 21:47:44 +02:00
parent bc9b0b925e
commit 7ac5713193
8 changed files with 168 additions and 38 deletions

View file

@ -5,6 +5,13 @@ const nextConfig: NextConfig = {
outputFileTracingIncludes: {
"/api/invoices/*": ["./modules/shared/pdf/assets/**/*"],
},
experimental: {
// Bereits besuchte Seiten 5 Min. im Browser halten. Eigene Änderungen leeren den Cache sofort
// (revalidatePath in den Actions), ebenso Login/Logout (Cookie-Änderung).
staleTimes: {
dynamic: 300,
},
},
};
export default nextConfig;