From 62af25abcf598c1badc5cf019fb5d217c6f9ae7a Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 26 Mar 2024 21:14:00 -0300 Subject: web-routes, search: make flexsearch available in client JS --- src/web-routes.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/web-routes.js') diff --git a/src/web-routes.js b/src/web-routes.js index 6b1335ac..3d610011 100644 --- a/src/web-routes.js +++ b/src/web-routes.js @@ -36,7 +36,16 @@ export const stationaryCodeRoutes = [ }, ]; -export const dependencyRoutes = []; +export const dependencyRoutes = [ + { + from: + path.join( + getNodeDependencyRootPath('flexsearch'), + 'dist'), + + to: ['staticLib.path', 'flexsearch'], + }, +]; export const allStaticWebRoutes = [ ...stationaryCodeRoutes, -- cgit 1.3.0-6-gf8a5