mirror of
https://github.com/bendtherules/ask262.git
synced 2026-08-18 13:21:55 +00:00
feat: Add env support + small fixes
This commit is contained in:
@@ -43,8 +43,8 @@ const STORAGE_DIR = path.resolve(__dirname, "..", STORAGE_DIR_REL);
|
||||
// Initialize embeddings based on ASK262_EMBEDDING_PROVIDER env var
|
||||
const embeddings = createEmbeddings();
|
||||
|
||||
// Server port (default: 3000)
|
||||
const PORT = Number(process.env.ASK262_PORT) || 3000;
|
||||
// Server port (default: 8081)
|
||||
const PORT = Number(process.env.ASK262_PORT) || 8081;
|
||||
|
||||
/**
|
||||
* Factory function to create a fresh MCP server instance.
|
||||
|
||||
Reference in New Issue
Block a user