mirror of
https://github.com/ArthurDanjou/artmcp.git
synced 2026-01-14 16:54:22 +01:00
fix: ajuster l'URL de téléchargement du CV en fonction de l'environnement de développement
This commit is contained in:
@@ -115,7 +115,8 @@ function createServer() {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async ({ lang }) => {
|
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 {
|
return {
|
||||||
content: [{ type: 'text', text: JSON.stringify(url, null, 2) }]
|
content: [{ type: 'text', text: JSON.stringify(url, null, 2) }]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user