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/url-spec.js | 5 +++++ src/web-routes.js | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/url-spec.js b/src/url-spec.js index 39f79459..dc4673e5 100644 --- a/src/url-spec.js +++ b/src/url-spec.js @@ -82,6 +82,11 @@ const urlSpec = { paths: genericPaths, }, + staticLib: { + prefix: `static-${STATIC_VERSION}/lib/`, + paths: genericPaths, + }, + staticMisc: { prefix: `static-${STATIC_VERSION}/misc/`, paths: { 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