fix: update MeiliSearch import to Meilisearch and adjust tsconfig paths

This commit is contained in:
2026-04-10 19:16:13 +08:00
parent baa47a5289
commit 2e689ecf4d
8 changed files with 1018 additions and 57 deletions

View File

@@ -1,11 +1,11 @@
import dotenv from 'dotenv';
import { MeiliSearch } from 'meilisearch';
import { Meilisearch } from 'meilisearch';
dotenv.config();
const meiliSearchKey = process.env.MEILISEARCH_KEY;
const host = process.env.MEILISEARCH_URL!;
export const client = new MeiliSearch({
export const client = new Meilisearch({
host: host,
apiKey: meiliSearchKey,
});