From 258fe2e452fe813b1bcd387d80376ec4239090e7 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 24 Apr 2025 13:45:48 +0300 Subject: [PATCH] fix(nx/server): missing images in dist --- apps/server/src/routes/assets.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/server/src/routes/assets.ts b/apps/server/src/routes/assets.ts index 906a1a5e4..e9218fc44 100644 --- a/apps/server/src/routes/assets.ts +++ b/apps/server/src/routes/assets.ts @@ -41,7 +41,7 @@ async function register(app: express.Application) { app.use(`/${assetPath}/app`, clientStaticCache); app.use(`/${assetPath}/app-dist`, clientStaticCache); app.use(`/${assetPath}/stylesheets`, persistentCacheStatic(path.join(distDir, "public", "stylesheets"))); - app.use(`/${assetPath}/images`, persistentCacheStatic(path.join(distDir, "public", "images"))); + app.use(`/${assetPath}/images`, persistentCacheStatic(path.join(distDir, "assets", "images"))); } app.use(`/${assetPath}/fonts`, persistentCacheStatic(path.join(srcRoot, "public/fonts"))); app.use(`/assets/vX/fonts`, express.static(path.join(srcRoot, "public/fonts")));