Skip to content

Algolia search is borked #150

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jasonday opened this issue Mar 9, 2025 · 2 comments
Open

Algolia search is borked #150

jasonday opened this issue Mar 9, 2025 · 2 comments

Comments

@jasonday
Copy link
Contributor

jasonday commented Mar 9, 2025

There's a lack of documentation with the Algolia config.

I've tried installing algolia via netlify following instructions here:
https://www.algolia.com/doc/tools/crawler/netlify-plugin/quick-start/
which adds env variables in netlify, however the site doesn't seem to be using the same env variables.

If I create the named variables using info from indexer, there still seems to be an issue. I'll narrow down the issue, but it doesn't seem to be working in your demo, on my site, etc.

@jasonday
Copy link
Contributor Author

jasonday commented Mar 9, 2025

I've got it working.

  • Removed environment from const.js
export function buildIndexName() {
    const indexName = ALGOLIA_INDEX_NAME_SUFFIX;
    return indexName;
}
  • Added env variables in netlify named "NEXT_"...
  • Added netlify crawler in build plugins in netlify
    • Note: I'm not sure if the crawler step is necessary, but...

netlify env variables

@jasonday
Copy link
Contributor Author

jasonday commented Mar 9, 2025

Note: keyboard functionality is not working for 'enter' key on the combobox list options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant