fix(nx/server): access to assets in prod

pull/1773/head
Elian Doran 2025-04-24 14:47:48 +07:00
parent d6f4b44360
commit 494ee4739a
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions

@ -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")));