11 lines
269 B
TypeScript
11 lines
269 B
TypeScript
import dotenv from 'dotenv';
|
|
import { MeiliSearch } from 'meilisearch';
|
|
|
|
dotenv.config();
|
|
|
|
const meiliSearchKey = process.env.MEILISEARCH_KEY;
|
|
const host = process.env.MEILISEARCH_URL!;
|
|
export const client = new MeiliSearch({
|
|
host: host,
|
|
apiKey: meiliSearchKey,
|
|
}); |