fix: locales serving

This commit is contained in:
dec0dOS 2024-07-09 19:58:54 +01:00
parent 2b79e9dd80
commit 94581a8999
6 changed files with 41 additions and 7 deletions

View file

@ -51,6 +51,10 @@ if (
["/app", "/app/*"],
express.static(path.join(__dirname, "..", "frontend", "build"))
);
app.use(
["/locales", "/locales/*"],
express.static(path.join(__dirname, "..", "frontend", "build", "locales"))
);
app.get(["/app/network/*"], function (req, res) {
res.sendFile(path.join(__dirname, "..", "frontend", "build", "index.html"));
});