fix(monorepo/server): get app assets to be served

This commit is contained in:
Elian Doran 2025-04-18 13:33:30 +03:00
parent 04b89dacb8
commit f95f2e1dd8
No known key found for this signature in database

View File

@ -19,7 +19,7 @@ async function register(app: express.Application) {
const srcRoot = path.join(path.dirname(fileURLToPath(import.meta.url)), ".."); const srcRoot = path.join(path.dirname(fileURLToPath(import.meta.url)), "..");
if (isDev) { if (isDev) {
app.use(`/${assetPath}/app/doc_notes`, persistentCacheStatic(path.join(srcRoot, "public/app/doc_notes"))); app.use(`/${assetPath}/app/doc_notes`, persistentCacheStatic(path.join(srcRoot, "public/app/doc_notes")));
app.use(`/${assetPath}/app`, persistentCacheStatic(path.join(srcRoot, "../client/build"))); app.use(`/${assetPath}/app`, persistentCacheStatic(path.join(srcRoot, "../../client/build")));
} else { } else {
app.use(`/${assetPath}/app`, persistentCacheStatic(path.join(srcRoot, "public/app"))); app.use(`/${assetPath}/app`, persistentCacheStatic(path.join(srcRoot, "public/app")));
} }