Support local public invoice URLs with port overrides.

Dev can set INVOICE_PUBLIC_BASE_URL or DEV_PORT/HOST so copied links reach the Vite viewer.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-11 16:03:33 +03:30
co-authored by Cursor
parent 49a9f0c289
commit d8f4e8c4e5
2 changed files with 22 additions and 8 deletions
+5 -1
View File
@@ -94,5 +94,9 @@ SSL_SYNC_AGENT_TOKEN=
# Public domain for platform invoice links (https://{domain}/invoices/{id})
INVOICE_PUBLIC_DOMAIN=meshkee.com
# Optional full origin for local (overrides domain), e.g. https://meshkee.app:5174
# Optional full origin for local (overrides domain + business host), e.g. https://meshkee.app:5174
# INVOICE_PUBLIC_BASE_URL=https://meshkee.app:5174
# Or keep production-style hosts and only append a port in non-production:
# INVOICE_PUBLIC_DEV_PORT=5174
# INVOICE_PUBLIC_DEV_HOST=meshkee.app
# INVOICE_PUBLIC_DEV_PROTOCOL=https