feat: configure n8n webhooks and update related documentation

This commit is contained in:
2026-05-17 23:01:57 +02:00
parent 387d2ba2ab
commit 44dbf6b93c
4 changed files with 167 additions and 2 deletions
+1 -1
View File
@@ -773,7 +773,7 @@ async function sendOrderEmailDirect(orderId) {
const sendBtn = orderDialogBody.querySelector("[data-manual-email-send]");
if (sendBtn) sendBtn.disabled = true;
const n8nUrl = (window.MCCARS_CONFIG?.N8N_WEBHOOK_URL || "http://localhost:55590") + "/webhook/manual-email-send";
const n8nUrl = window.MCCARS_CONFIG?.N8N_WEBHOOK_URL || "http://localhost:55521/webhook/manual-email-send";
try {
// Use urlencoded payload to avoid browser preflight/CORS issues with JSON headers.