nah
This commit is contained in:
@@ -21,11 +21,20 @@ export function registerGetWebUrlTool(server) {
|
||||
};
|
||||
}
|
||||
|
||||
// En modo local forzamos http:// porque los certificados SSL de
|
||||
// los subdominios forge pueden no validar correctamente en
|
||||
// playwright/fetch/curl desde el container. En produccion se
|
||||
// mantiene https:// (el sitio real tiene certificado valido).
|
||||
let webUrl = credentials.web_url;
|
||||
if (credentials.mode !== "production" && typeof webUrl === "string" && webUrl.startsWith("https://")) {
|
||||
webUrl = "http://" + webUrl.slice("https://".length);
|
||||
}
|
||||
|
||||
return {
|
||||
content: [{
|
||||
type: "text",
|
||||
text: JSON.stringify({
|
||||
web_url: credentials.web_url,
|
||||
web_url: webUrl,
|
||||
api_web_url: credentials.api_web_url || null,
|
||||
website: credentials.website || null,
|
||||
note: "Always use web_url for Playwright/fetch. IMPORTANT: Always append ?pruebas=1 to any URL you visit (e.g. web_url + '/?pruebas=1' or web_url + '/servicios/?pruebas=1'). Never use the production domain directly.",
|
||||
|
||||
Reference in New Issue
Block a user