From d7ddcd5f6ba31a4adc4897f44c7af7490bb68037 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Fri, 14 Nov 2025 12:46:08 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20ajuster=20l'URL=20de=20t=C3=A9l=C3=A9cha?= =?UTF-8?q?rgement=20du=20CV=20en=20fonction=20de=20l'environnement=20de?= =?UTF-8?q?=20d=C3=A9veloppement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/routes/mcp.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/routes/mcp.ts b/server/routes/mcp.ts index ebc6519..55a7e9f 100644 --- a/server/routes/mcp.ts +++ b/server/routes/mcp.ts @@ -115,7 +115,8 @@ function createServer() { } }, async ({ lang }) => { - const url = `https://mcp.arthurdanjou.fr/api/resumes/${lang}` + const base_url = import.meta.dev ? 'http://localhost:3000/api' : 'https://mcp.arthurdanjou.fr/api' + const url = `${base_url}/resumes/${lang}` return { content: [{ type: 'text', text: JSON.stringify(url, null, 2) }] }