fix(mcps): natively load .env for production start scripts

This commit is contained in:
2026-03-03 19:40:50 +01:00
parent 1670b8e5ef
commit b9d0199115
2 changed files with 2 additions and 2 deletions

View File

@@ -6,7 +6,7 @@
"type": "module", "type": "module",
"scripts": { "scripts": {
"build": "tsc", "build": "tsc",
"start": "node dist/index.js" "start": "node --env-file-if-exists=../../.env dist/index.js"
}, },
"dependencies": { "dependencies": {
"@modelcontextprotocol/sdk": "^1.5.0", "@modelcontextprotocol/sdk": "^1.5.0",

View File

@@ -6,7 +6,7 @@
"type": "module", "type": "module",
"scripts": { "scripts": {
"build": "tsc", "build": "tsc",
"start": "node dist/index.js", "start": "node --env-file-if-exists=../../.env dist/index.js",
"dev": "tsx watch src/index.ts", "dev": "tsx watch src/index.ts",
"test:unit": "vitest run" "test:unit": "vitest run"
}, },