Events: everything the backend serves is under /api (for 2.3.0)
The site and its API can share one address with one proxy rule (/api to the backend, everything else to the frontend). Status page at /api (/ redirects), /api/health, /api/docs/v2, /api/uploads. Stored upload paths stay /uploads/… and are given out as /api/uploads/…. Old paths still answer (/health, /uploads) or redirect (/docs, /docs/v2), so two-address sites keep working. DEPLOYMENT.md and the agent plan describe the single rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -269,7 +269,7 @@ async function sendPdf(toPhone, localPdfPath, filename, caption) {
|
||||
`Set BACKEND_URL to your public backend URL (e.g. https://api.yourdomain.com) in your .env file.`
|
||||
);
|
||||
}
|
||||
const pdfUrl = `${backendUrl}/uploads/tickets-temp/${tempName}`;
|
||||
const pdfUrl = `${backendUrl}/api/uploads/tickets-temp/${tempName}`;
|
||||
|
||||
const { token, instanceId } = await getConfig();
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user