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

Unable to manage plugin through netlify.toml #207

Open
ketan-vijayvargiya opened this issue Feb 13, 2021 · 1 comment
Open

Unable to manage plugin through netlify.toml #207

ketan-vijayvargiya opened this issue Feb 13, 2021 · 1 comment

Comments

@ketan-vijayvargiya
Copy link

Hi,

I enabled this plugin for my Netlify site by following the documentation.

However, I like to manage my plugins and environment variables through my netlify.toml file. So, I removed those environment variables and plugin from the Netlify website and added the following to netlify.toml:

...
ALGOLIA_API_KEY = "..."
ALGOLIA_BASE_URL = "https://crawler.algolia.com"

[[plugins]]
package = "@algolia/netlify-plugin-crawler"

On doing so, Algolia removed the crawler after sometime with the following error: Algolia can no longer access your Netlify Site "...". This shouldn't have happened, right? Or did I do something wrong?

@bodinsamuel
Copy link
Contributor

Hey @ketan-vijayvargiya
thanks for the report.

We never tried this way, it should indeed work based on what we read. We'll test and reach out again.

Please be aware that committing your API key is not a recommended practice (as for any other secret) that's also why we are pushing it to Netlify.

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