mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	fix(monorepo/server): app-dist (as requested by webpack) on dev mode
This commit is contained in:
		| @@ -20,12 +20,13 @@ async function register(app: express.Application) { | |||||||
|     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"))); | ||||||
|  |         app.use(`/${assetPath}/app-dist`, persistentCacheStatic(path.join(srcRoot, "../../client/build"))); | ||||||
|         app.use(`/${assetPath}/stylesheets`, persistentCacheStatic(path.join(srcRoot, "../../client/stylesheets"))); |         app.use(`/${assetPath}/stylesheets`, persistentCacheStatic(path.join(srcRoot, "../../client/stylesheets"))); | ||||||
|     } else { |     } else { | ||||||
|         app.use(`/${assetPath}/app`, persistentCacheStatic(path.join(srcRoot, "public/app"))); |         app.use(`/${assetPath}/app`, persistentCacheStatic(path.join(srcRoot, "public/app"))); | ||||||
|  |         app.use(`/${assetPath}/app-dist`, persistentCacheStatic(path.join(srcRoot, "public/app-dist"))); | ||||||
|         app.use(`/${assetPath}/stylesheets`, persistentCacheStatic(path.join(srcRoot, "public/stylesheets"))); |         app.use(`/${assetPath}/stylesheets`, persistentCacheStatic(path.join(srcRoot, "public/stylesheets"))); | ||||||
|     } |     } | ||||||
|     app.use(`/${assetPath}/app-dist`, persistentCacheStatic(path.join(srcRoot, "public/app-dist"))); |  | ||||||
|     app.use(`/${assetPath}/fonts`, persistentCacheStatic(path.join(srcRoot, "public/fonts"))); |     app.use(`/${assetPath}/fonts`, persistentCacheStatic(path.join(srcRoot, "public/fonts"))); | ||||||
|     app.use(`/assets/vX/fonts`, express.static(path.join(srcRoot, "public/fonts"))); |     app.use(`/assets/vX/fonts`, express.static(path.join(srcRoot, "public/fonts"))); | ||||||
|     app.use(`/${assetPath}/images`, persistentCacheStatic(path.join(srcRoot, "..", "images"))); |     app.use(`/${assetPath}/images`, persistentCacheStatic(path.join(srcRoot, "..", "images"))); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user