From 24d2aaaa50d949ecaa8907edfeb0290f875eeb3e Mon Sep 17 00:00:00 2001 From: Sebastian Frank Date: Tue, 25 Jan 2022 16:21:54 +0100 Subject: [PATCH] ssr 404 --- api/hooks/ssr/get_read.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/api/hooks/ssr/get_read.js b/api/hooks/ssr/get_read.js index 04bdc2d..dd9b0eb 100644 --- a/api/hooks/ssr/get_read.js +++ b/api/hooks/ssr/get_read.js @@ -142,7 +142,13 @@ var utils = require("../lib/utils") JSON.stringify(context.ssrCache) + "" - cacheIt = true + // status from webapp + // @ts-ignore + if (context.is404) { + status = 404 + } else { + cacheIt = true + } } catch (e) { utils.log(e.message) utils.log(e.stack)