From 494ee4739aff1614fbbbcb6ee14ea68f16293ccc Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 24 Apr 2025 14:47:48 +0300 Subject: [PATCH] fix(nx/server): access to assets in prod --- apps/server/src/routes/assets.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/server/src/routes/assets.ts b/apps/server/src/routes/assets.ts index e9218fc44..612056e9e 100644 --- a/apps/server/src/routes/assets.ts +++ b/apps/server/src/routes/assets.ts @@ -41,6 +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}/libraries`, persistentCacheStatic(path.join(distDir, "public", "libraries"))); app.use(`/${assetPath}/images`, persistentCacheStatic(path.join(distDir, "assets", "images"))); } app.use(`/${assetPath}/fonts`, persistentCacheStatic(path.join(srcRoot, "public/fonts")));