this is not a production plugin
do not use it
node >= 18
$ npm i vitepress-plugin-meilisearch -D
//vite.config.ts
import { SearchPlugin } from "vitepress-plugin-meilisearch";
import { defineConfig } from "vite";
//default options
var options = {
host: 'http://127.0.0.1:7700',
indexName: 'search-index',
searchKey: 'abs***428',
apiKey: 'lqq***dl'
};
export default defineConfig({
plugins: [SearchPlugin(options)],
});