Closed Blackglade closed 4 years ago
You can based on that condition not add the plugin in Gatsby config. Does that work for you?
yeah that's what I'm currently doing. Was ideally hoping for a param passed into settings that could disable indexing on build.
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
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
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
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.
Hi,
I want to be able to disabling indexing of data on dev builds in my local environment. Is there anyway to block this? In the past I just set the following environment variables to garbage values:
but lately that doesn't work as the dev build errors out in my CI/CD pipeline with this:
Anyway to get around this?