
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
gatsby-plugin-algolia-index
Advanced tools
[](https://travis-ci.org/kdichev/gatsby-plugin-algolia-index)
🚧 This plugin is work in progress 🚧
Feel free to open issues for any questions or ideas
$ yarn add gatsby-plugin-algolia-index
First add credentials to a .env file, which you won't commit. If you track this in your file, and especially if the site is open source, you will leak your admin API key. This would mean anyone is able to change anything on your Algolia index.
// .env.${process.env.NODE_ENV}
ALGOLIA_APP_ID=XXX
ALGOLIA_API_KEY=XXX
require('dotenv').config({
path: `.env.${process.env.NODE_ENV}`,
})
// gatsby-config.js
module.exports = {
plugins: [
{
resolve: `gatsby-plugin-algolia-index`,
options: {
appId: process.env.ALGOLIA_APP_ID,
apiKey: process.env.ALGOLIA_API_KEY,
indexName: process.env.ALGOLIA_INDEX_NAME, // for all queries
path: 'path/to/custom/indexing-config' // optional
chunkSize: 10000, // default: 1000
},
},
],
}
// algolia-index-config.js
// (graphql: GraphQlClient) => Promise<[]<{indexName: string, indexData: []<any>}>>
module.exports = async (/*graphql*/) => [
{ indexName: 'index1', indexData: [{ hello: '1' }] },
{ indexName: 'index2', indexData: [{ hello: '2' }] },
]
FAQs
[](https://travis-ci.org/kdichev/gatsby-plugin-algolia-index)
We found that gatsby-plugin-algolia-index demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.