diff --git a/apps/server/src/routes/assets.ts b/apps/server/src/routes/assets.ts index c68b64bc18..a6efe543b0 100644 --- a/apps/server/src/routes/assets.ts +++ b/apps/server/src/routes/assets.ts @@ -38,8 +38,8 @@ async function register(app: express.Application) { base: `/${assetUrlFragment}/` }); app.use(`/${assetUrlFragment}/`, (req, res, next) => { - if (req.url.startsWith("/images/")) { - // Images are served as static assets from the server. + if (req.url.startsWith("/images/") || req.url.startsWith("/doc_notes/")) { + // Images and doc notes are served as static assets from the server. next(); return; }