Skip to content

Commit a9f6a15

Browse files
committed
refactor: local option
1 parent c16b622 commit a9f6a15

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/burger-mcp/src/config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ const __dirname = path.dirname(new URL(import.meta.url).pathname);
77
dotenv.config({ path: path.join(__dirname, '../../../.env'), quiet: true });
88

99
// 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';
10+
const localApiUrl = 'http://localhost:7071';
11+
export const burgerApiUrl = process.argv[2] !== '--local' ? localApiUrl : (process.env.BURGER_API_URL || localApiUrl);

0 commit comments

Comments
 (0)