mirror of
https://github.com/Since-3/since3-portal.git
synced 2026-10-12 20:51:17 +00:00
24 lines
1.1 KiB
TypeScript
24 lines
1.1 KiB
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
// Fonts und Logo werden zur Laufzeit per fs gelesen und müssen mit ins Deployment.
|
|
outputFileTracingIncludes: {
|
|
"/api/invoices/*": ["./modules/shared/pdf/assets/**/*"],
|
|
// Der Next.js-Export liest die Quelltexte der Vorlagen und eigene Bilder (modules/templates/export/project.ts)
|
|
"/api/templates/**": ["./modules/templates/**/*.{ts,tsx}", "./lib/utils.ts", "./public/pictures/templates/**/*"],
|
|
},
|
|
images: {
|
|
// Platzhalterbilder der Vorlagen. Ohne `search`, weil Unsplash-Links Parameter (w, q, fit) tragen.
|
|
// Bild-Links anderer Seiten lädt die Vorlage unoptimiert (modules/templates/catalog/shared/media.tsx).
|
|
remotePatterns: [{ protocol: "https", hostname: "images.unsplash.com", pathname: "/**" }],
|
|
},
|
|
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;
|