diff --git a/src/server/index.tsx b/src/server/index.tsx index 41a6ec8e..3d1ee803 100644 --- a/src/server/index.tsx +++ b/src/server/index.tsx @@ -36,6 +36,8 @@ if (process.env.NODE_ENV !== "development") { next(); }); } +const customScript = process.env["LEMMY_UI_CUSTOM_SCRIPT"] || ""; + server.use(express.json()); server.use(express.urlencoded({ extended: false })); server.use("/static", express.static(path.resolve("./dist"))); @@ -198,6 +200,9 @@ server.get("/*", async (req, res) => { ${erudaStr} + + ${customScript} + ${helmet.title.toString()} ${helmet.meta.toString()}