Giter Site home page Giter Site logo

Comments (6)

Blackglade avatar Blackglade commented on June 15, 2024 1

I did look around and was unable to find any other plugin that does nothing by addition of a config value. It seems like the accepted practice is to just remove it from export. You can close this issue out unless there's interest from anyone else to explore it further.

from gatsby-plugin-algolia.

Haroenv avatar Haroenv commented on June 15, 2024

You can based on that condition not add the plugin in Gatsby config. Does that work for you?

from gatsby-plugin-algolia.

Blackglade avatar Blackglade commented on June 15, 2024

yeah that's what I'm currently doing. Was ideally hoping for a param passed into settings that could disable indexing on build.

from gatsby-plugin-algolia.

Haroenv avatar Haroenv commented on June 15, 2024

Indexing on build is the only thing this plugin does, I'd rather not reinvent the wheel. Do you know of other Gatsby plugin which are conditional based on configuration, and not just on addition? Thanks

from gatsby-plugin-algolia.

caelinsutch avatar caelinsutch commented on June 15, 2024

Is there any interest in writing a PR for this? Maybe set an env variable to disable automatic indexing? Another option is using an env variable in your gatsby config

from gatsby-plugin-algolia.

Haroenv avatar Haroenv commented on June 15, 2024

I'd like to see some other plugins doing something similar. If you don't want to index, nothing of the index should be done IMO

from gatsby-plugin-algolia.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.