We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c16b622 commit a9f6a15Copy full SHA for a9f6a15
packages/burger-mcp/src/config.ts
@@ -7,4 +7,5 @@ const __dirname = path.dirname(new URL(import.meta.url).pathname);
7
dotenv.config({ path: path.join(__dirname, '../../../.env'), quiet: true });
8
9
// Use --local option to force MCP server to connect to local Burger API
10
-export const burgerApiUrl = (process.argv[2] !== '--local' && process.env.BURGER_API_URL) || 'http://localhost:7071';
+const localApiUrl = 'http://localhost:7071';
11
+export const burgerApiUrl = process.argv[2] !== '--local' ? localApiUrl : (process.env.BURGER_API_URL || localApiUrl);
0 commit comments