···240240 );
241241242242 if (pdsService && pdsService.endpoint) {
243243- serviceEndpoint = pdsService.endpoint;
244244-245243 // Extract the full URL including subdomain for reference
246244 try {
247245 const serviceUrl = new URL(pdsService.endpoint);
248246 // Store the full hostname including subdomains
249247 servicePds = serviceUrl.hostname;
250250- console.log(`Found PDS service for ${handle} at ${serviceEndpoint} (${servicePds})`);
248248+ // Use the full hostname for the service endpoint
249249+ serviceEndpoint = `https://${servicePds}`;
250250+ console.log(`Found PDS service for ${handle} at ${serviceEndpoint}`);
251251 } catch (e) {
252252 console.warn(`Could not parse service URL: ${pdsService.endpoint}`);
253253 }