mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-01 03:38:35 +08:00 
			
		
		
		
	fix(nx/server): access to assets in prod
This commit is contained in:
		
							parent
							
								
									d6f4b44360
								
							
						
					
					
						commit
						494ee4739a
					
				
					 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"))); | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue