mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	fix(monorepo/server): serve stylesheets
This commit is contained in:
		
							parent
							
								
									f95f2e1dd8
								
							
						
					
					
						commit
						2af9a9a535
					
				| @ -20,15 +20,16 @@ async function register(app: express.Application) { | ||||
|     if (isDev) { | ||||
|         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}/stylesheets`, persistentCacheStatic(path.join(srcRoot, "../../client/stylesheets"))); | ||||
|     } else { | ||||
|         app.use(`/${assetPath}/app`, persistentCacheStatic(path.join(srcRoot, "public/app"))); | ||||
|         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(`/assets/vX/fonts`, express.static(path.join(srcRoot, "public/fonts"))); | ||||
|     app.use(`/${assetPath}/images`, persistentCacheStatic(path.join(srcRoot, "..", "images"))); | ||||
|     app.use(`/assets/vX/images`, express.static(path.join(srcRoot, "..", "images"))); | ||||
|     app.use(`/${assetPath}/stylesheets`, persistentCacheStatic(path.join(srcRoot, "public/stylesheets"))); | ||||
|     app.use(`/assets/vX/images`, express.static(path.join(srcRoot, "..", "images")));     | ||||
|     app.use(`/assets/vX/stylesheets`, express.static(path.join(srcRoot, "public/stylesheets"))); | ||||
|     app.use(`/${assetPath}/libraries`, persistentCacheStatic(path.join(srcRoot, "..", "libraries"))); | ||||
|     app.use(`/assets/vX/libraries`, express.static(path.join(srcRoot, "..", "libraries"))); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran