From 721cde8e9fbea02fa4faca6622858b1875557144 Mon Sep 17 00:00:00 2001 From: MOHAN Date: Sun, 5 Jul 2026 02:35:28 +0530 Subject: [PATCH] Update .env.example to the new getodoomcp.com domains Documents the current production domains (api.getodoomcp.com backend, getodoomcp.com frontend) and warns against trailing slashes on PUBLIC_URL/CORS_ORIGINS/FRONTEND_BASE_URL, which caused a CORS + double- slash 404 bug on the frontend. Co-Authored-By: Claude Sonnet 5 --- .env.example | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index 3eee009..0a5b09d 100644 --- a/.env.example +++ b/.env.example @@ -5,10 +5,13 @@ MCP_SERVER_NAME=mt-odoo-mcp MCP_LOG_LEVEL=INFO # Base URL clients use to reach this server — shown in signup/regen-key API responses -PUBLIC_URL=https://odoo-mcp.thedomainnest.com +# No trailing slash — the frontend and this server both concatenate paths onto this directly. +PUBLIC_URL=https://api.getodoomcp.com -# Comma-separated list of origins allowed to call the API from a browser (the frontend domain) -CORS_ORIGINS=http://localhost:3000 +# Comma-separated list of origins allowed to call the API from a browser (the frontend domain). +# Must exactly match the frontend's origin (scheme + host, no trailing slash) or the browser +# will block every request with a CORS error. +CORS_ORIGINS=https://getodoomcp.com # ─── Security (generate strong random values for production) ───────────────── # Currently unused by the app (reserved for future signed tokens) — set anyway for forward compat @@ -37,8 +40,8 @@ SMTP_PORT=587 SMTP_USER= SMTP_PASSWORD= SMTP_FROM_EMAIL=no-reply@odoomcp.cloud -# Used to build the reset-password link sent to users -FRONTEND_BASE_URL=http://localhost:3000 +# Used to build the reset-password link sent to users — no trailing slash +FRONTEND_BASE_URL=https://getodoomcp.com # ─── Admin Panel ──────────────────────────────────────────────────────────────── # Single hardcoded operator identity for /admin — not a row in the users table.