mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 13:01:31 +08:00 
			
		
		
		
	fix(nx/server): access to assets in prod
This commit is contained in:
		
							parent
							
								
									d6f4b44360
								
							
						
					
					
						commit
						494ee4739a
					
				| @ -41,6 +41,7 @@ async function register(app: express.Application) { | |||||||
|         app.use(`/${assetPath}/app`, clientStaticCache); |         app.use(`/${assetPath}/app`, clientStaticCache); | ||||||
|         app.use(`/${assetPath}/app-dist`, clientStaticCache); |         app.use(`/${assetPath}/app-dist`, clientStaticCache); | ||||||
|         app.use(`/${assetPath}/stylesheets`, persistentCacheStatic(path.join(distDir, "public", "stylesheets"))); |         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}/images`, persistentCacheStatic(path.join(distDir, "assets", "images"))); | ||||||
|     } |     } | ||||||
|     app.use(`/${assetPath}/fonts`, persistentCacheStatic(path.join(srcRoot, "public/fonts"))); |     app.use(`/${assetPath}/fonts`, persistentCacheStatic(path.join(srcRoot, "public/fonts"))); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran