mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01:00 
			
		
		
		
	fix(server): doc notes not being served in dev mode
This commit is contained in:
		
							parent
							
								
									3911c0c22b
								
							
						
					
					
						commit
						ec95f62cd2
					
				@ -31,6 +31,7 @@ async function register(app: express.Application) {
 | 
				
			|||||||
            target: productionConfig.target
 | 
					            target: productionConfig.target
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        app.use(`/${assetPath}/app/doc_notes`, persistentCacheStatic(path.join(srcRoot, "public/app/doc_notes")));
 | 
				
			||||||
        app.use(`/${assetPath}/app`, webpackMiddleware(frontendCompiler));
 | 
					        app.use(`/${assetPath}/app`, webpackMiddleware(frontendCompiler));
 | 
				
			||||||
    } 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