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 <noreply@anthropic.com>
This commit is contained in:
MOHAN 2026-07-05 02:35:28 +05:30
parent b56435e258
commit 721cde8e9f

View File

@ -5,10 +5,13 @@ MCP_SERVER_NAME=mt-odoo-mcp
MCP_LOG_LEVEL=INFO MCP_LOG_LEVEL=INFO
# Base URL clients use to reach this server — shown in signup/regen-key API responses # 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) # Comma-separated list of origins allowed to call the API from a browser (the frontend domain).
CORS_ORIGINS=http://localhost:3000 # 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) ───────────────── # ─── Security (generate strong random values for production) ─────────────────
# Currently unused by the app (reserved for future signed tokens) — set anyway for forward compat # 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_USER=
SMTP_PASSWORD= SMTP_PASSWORD=
SMTP_FROM_EMAIL=no-reply@odoomcp.cloud SMTP_FROM_EMAIL=no-reply@odoomcp.cloud
# Used to build the reset-password link sent to users # Used to build the reset-password link sent to users — no trailing slash
FRONTEND_BASE_URL=http://localhost:3000 FRONTEND_BASE_URL=https://getodoomcp.com
# ─── Admin Panel ──────────────────────────────────────────────────────────────── # ─── Admin Panel ────────────────────────────────────────────────────────────────
# Single hardcoded operator identity for /admin — not a row in the users table. # Single hardcoded operator identity for /admin — not a row in the users table.