summaryrefslogtreecommitdiff
path: root/src/routes/static.ts
diff options
context:
space:
mode:
authorRaphael Kabo <raphaelkabo@hey.com>2024-02-26 12:09:46 +0000
committerRaphael Kabo <raphaelkabo@hey.com>2024-02-26 12:09:46 +0000
commitc93fd6e2d455ea4208f9e5ca6bfbd1c0e9fd1ad9 (patch)
tree8baed2c232b629a98b21006adf440f6f83d5da57 /src/routes/static.ts
parent363cfbae076f4494ddd5fddcf03de622f6247051 (diff)
refactor: allow Cypress to override config
Diffstat (limited to 'src/routes/static.ts')
-rw-r--r--src/routes/static.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/routes/static.ts b/src/routes/static.ts
index 33f0225..6fab98d 100644
--- a/src/routes/static.ts
+++ b/src/routes/static.ts
@@ -21,13 +21,13 @@ if (config.static_pages?.length) {
return res.render("static", {
title: page.title,
content: parsed,
- ...frontendConfig(),
+ ...frontendConfig(res),
});
}
- return res.status(404).render("404", frontendConfig());
+ return res.status(404).render("404", frontendConfig(res));
} catch (err) {
console.error(err);
- return res.status(404).render("404", frontendConfig());
+ return res.status(404).render("404", frontendConfig(res));
}
});
});