gatsby-plugin-algolia icon indicating copy to clipboard operation
gatsby-plugin-algolia copied to clipboard

Possible to export to Index outside of gatsby-config.js?

Open jeffzickgraf opened this issue 6 years ago • 2 comments

I'm programmatically getting data to build pages from another plugin and would like to build the Algolia index after getting data from the other plugin. Is it possible to push to the index after my pages are built?

My data isn't available at the time the algolia plugin is resolved.

Seems like the query is required in the resolving of the gatsby-plugin-algolia.

jeffzickgraf avatar Oct 25 '18 22:10 jeffzickgraf

Could you try instead putting gatsby-plugin-algolia last in your Gatsby config? I think plugins are ran sequentially.

If that doesn't work, could you please give access to a piece of code which has that issue?

Haroenv avatar Oct 26 '18 07:10 Haroenv

The algolia plugin is the last already.

I just sent a private message to your hello at haroen.me address where you may find code and a couple secrets..

jeffzickgraf avatar Oct 26 '18 13:10 jeffzickgraf