Refactor StatusPageApiInternalUrl to use AppApiClientUrl for improved clarity in server communication

This commit is contained in:
Nawaz Dhandala
2026-01-08 19:59:15 +00:00
parent 6134fa467c
commit c2be57e2f0

View File

@@ -400,11 +400,9 @@ export const StatusPageApiClientUrl: URL = new URL(
// Internal URL for server-to-server communication (uses internal Docker hostname)
// Note: The internal path is /api/status-page (not /status-page-api) because
// /status-page-api is the external route that Nginx rewrites to /api/status-page
export const StatusPageApiInternalUrl: URL = new URL(
Protocol.HTTP,
AppApiHostname.toString(),
new Route("/api/status-page"),
);
export const StatusPageApiInternalUrl: URL = URL.fromString(
AppApiClientUrl.toString()
).addRoute(new Route("/status-page"));
export const DashboardClientUrl: URL = new URL(
HttpProtocol,