fix: use config instead of process.env for dashboard URL check

This commit is contained in:
Fizza-Mukhtar
2026-03-05 01:07:30 -08:00
parent 1a2069a6d9
commit 4cfcc64481
2 changed files with 2 additions and 2 deletions

View File

@@ -354,7 +354,7 @@ async function updateHttpResource(
}
// Prevent updating resource with same domain as dashboard
const dashboardUrl = process.env.DASHBOARD_URL;
const dashboardUrl = config.getRawConfig().app.dashboard_url;
if (dashboardUrl) {
const dashboardHost = new URL(dashboardUrl).hostname;
if (fullDomain === dashboardHost) {