Skip to content
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

Request for skipIndexing Option to Avoid Unwanted API Access During CI Builds #176

Open
swfz opened this issue May 8, 2023 · 2 comments

Comments

@swfz
Copy link

swfz commented May 8, 2023

I would like to have the skipIndexing option that existed in the v0 series.
From v1, even with the dryRun option, access to the API occurs.

The API is used to obtain existing Objects and retrieve index information, consuming the number of operations.

It does not meet the case where I only want to build in CI and do not want to allow access to the API.

@Haroenv
Copy link
Contributor

Haroenv commented May 22, 2023

If you don't want to run the plugin during CI, you could also enable the plugin conditionally:

module.exports = {
  plugins: [
    process.env.NODE_ENV === 'production' ? {
      resolve: 'gatsby-plugin-algolia',
    } : undefined,
  ].filter(Boolean),
}

@swfz
Copy link
Author

swfz commented Jun 13, 2023

Certainly, there is nothing we can't do.

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

2 participants