Fix static hosting domain fallback for self-hosted custom domains (#3382)
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
Notify HeyPuter / notify (push) Has been cancelled
release-please / release-please (push) Has been cancelled

This commit is contained in:
tamilselvanp57
2026-07-15 11:45:10 -07:00
committed by GitHub
parent 861cf5efb8
commit a4bb57bb79
+5 -3
View File
@@ -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') ) {