wunderio / next-drupal-starterkit

Next.js for Drupal multilingual template by Wunder
https://next-drupal-starterkit.dev.wdr.io
GNU General Public License v2.0
92 stars 17 forks source link

NEX-127: Reimplementing search for app router #244

Closed vermario closed 1 month ago

vermario commented 1 month ago

This branch, that has as a destination the app router branch, aims to add back a search functionality for the starterkit, since the previous implementation is not compatible with the app router.

  1. no changes in indexing of the content on the drupal side
  2. removal of the drupal proxying function, next.js will talk straight to elasticsearch (only server side)
  3. added searchkit and instantsearch from Algolia as the frontend
  4. cleanup of previous search functionality

I think we will probably want to review how things are done in these areas:

  1. styling, now I have imported the basic stylesheet for the library, do we want to customize things more or is that ok?
  2. accessibilty: we are using the components as they are now, maybe we want to adjust something?

BUT I think this could now be merged into the main NEX-127 branch, since we cannot merge that one without search, and this also fixes the silta setup so that branch can be deployed to Silta.

Test url: https://nex-127-search-next.next-drupal-starterkit.dev.wdr.io/search