diff --git a/main.js b/main.js index 3e2dda8..b8ad6d4 100644 --- a/main.js +++ b/main.js @@ -2,6 +2,7 @@ import bodyParser from "body-parser"; import cors from "cors"; import express from "express"; import { getChain, search_index } from "./embeddings.js"; +import "dotenv/config"; const app = express(); app.use( diff --git a/package.json b/package.json index ec25b28..a6e4609 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "ai": "^2.1.15", "body-parser": "^1.20.2", "cors": "^2.8.5", + "dotenv": "^16.3.1", "express": "^4.18.2", "faiss-node": "^0.3.0", "glob": "^10.3.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 045f6fd..648ba81 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -14,6 +14,9 @@ dependencies: cors: specifier: ^2.8.5 version: 2.8.5 + dotenv: + specifier: ^16.3.1 + version: 16.3.1 express: specifier: ^4.18.2 version: 4.18.2 @@ -590,6 +593,11 @@ packages: md5: 2.3.0 dev: false + /dotenv@16.3.1: + resolution: {integrity: sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==} + engines: {node: '>=12'} + dev: false + /eastasianwidth@0.2.0: resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} dev: false