diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-03-26 21:14:00 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-05-31 12:11:44 -0300 |
commit | 62af25abcf598c1badc5cf019fb5d217c6f9ae7a (patch) | |
tree | c56349b1eb7e565a63c9880a39aa404eec6f54a6 | |
parent | b537d4e1369d494a9cb2454086a47b507097b367 (diff) |
web-routes, search: make flexsearch available in client JS
-rw-r--r-- | src/url-spec.js | 5 | ||||
-rw-r--r-- | src/web-routes.js | 11 |
2 files changed, 15 insertions, 1 deletions
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, |