mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 13:01:31 +08:00 
			
		
		
		
	fix(monorepo/server): get app assets to be served
This commit is contained in:
		
							parent
							
								
									04b89dacb8
								
							
						
					
					
						commit
						f95f2e1dd8
					
				| @ -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"))); | ||||||
|     } |     } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran