fix url replacing in algolia search

This commit is contained in:
aleabodo 2024-07-21 10:14:03 +02:00
parent 05db54a741
commit 6c742593db

View File

@ -73,10 +73,10 @@ const config = {
//externalUrlRegex: 'external\\.com|domain\\.com', //externalUrlRegex: 'external\\.com|domain\\.com',
// Optional: Replace parts of the item URLs from Algolia. Useful when using the same search index for multiple deployments using a different baseUrl. You can use regexp or string in the `from` param. For example: localhost:3000 vs myCompany.com/docs // Optional: Replace parts of the item URLs from Algolia. Useful when using the same search index for multiple deployments using a different baseUrl. You can use regexp or string in the `from` param. For example: localhost:3000 vs myCompany.com/docs
replaceSearchResultPathname: { //replaceSearchResultPathname: {
from: '/docs/', // or as RegExp: /\/docs\// // from: '/docs/', // or as RegExp: /\/docs\//
to: '/', // to: '/',
}, //},
// Optional: Algolia search parameters // Optional: Algolia search parameters
searchParameters: {}, searchParameters: {},