From 91be6d716a5ce4ecbf87b0794bf4837de10668da Mon Sep 17 00:00:00 2001 From: folx bot Date: Wed, 26 Aug 2026 10:21:01 +0200 Subject: [PATCH] naslovnica: express.static je sam postregel index.html, zato SSR handler ni prisel do besede (index: false) --- server/static.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/static.ts b/server/static.ts index efa75ff..2af2c0c 100644 --- a/server/static.ts +++ b/server/static.ts @@ -129,6 +129,9 @@ export function serveStatic(app: Express) { } app.use(express.static(distPath, { + // brez tega express.static sam postrezhe index.html za "/" in nasa + // naslovnica nikoli ne pride do handlerja, ki ji doda strukturirane podatke + index: false, setHeaders(res, filePath) { if (filePath.endsWith("og-image.jpg") || filePath.includes("/uploads/") || filePath.includes("/images/")) { res.setHeader("Cache-Control", "public, max-age=86400");