From a4bb57bb7976459688bdf4a97fa711c6e4597e0a Mon Sep 17 00:00:00 2001 From: tamilselvanp57 Date: Thu, 16 Jul 2026 00:15:10 +0530 Subject: [PATCH] Fix static hosting domain fallback for self-hosted custom domains (#3382) --- src/dev-center/js/dev-center.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/dev-center/js/dev-center.js b/src/dev-center/js/dev-center.js index 926ffc545..0d7c79e80 100644 --- a/src/dev-center/js/dev-center.js +++ b/src/dev-center/js/dev-center.js @@ -45,9 +45,11 @@ if ( window.url_params.has('puter.domain') ) { // static hosting domain window.static_hosting_domain = 'puter.site'; -if ( window.domain === 'puter.localhost' ) { - window.static_hosting_domain = 'site.puter.localhost'; -} + if ( window.domain === 'puter.localhost' ) { + window.static_hosting_domain = 'site.puter.localhost'; + } else if ( window.domain && window.domain !== 'puter.com' ) { + window.static_hosting_domain = `site.${window.domain}`; + } // add port to static_hosting_domain if provided if ( window.url_params.has('puter.port') && window.url_params.get('puter.port') ) {