mirror of
https://github.com/colbymchenry/codegraph.git
synced 2026-10-29 23:01:53 +08:00
fix(marketplace): flush registry files with Windows-compatible handles
This commit is contained in:
@@ -20,7 +20,7 @@ exports.httpsMarketplace = async function(port, out) {
|
||||
try { const response = await fetch(url+'/api/health',{signal:AbortSignal.timeout(5000)}); if(response.ok && (await response.json()).ok) {
|
||||
fs.writeFileSync(path.join(out,'https-transport.json'),JSON.stringify({origin:url,kind:'temporary-public-tunnel',durableHosting:false,verifiedAt:new Date().toISOString()},null,2));
|
||||
return { origin:url, close };
|
||||
}} catch { /* Wait for public route propagation. */ }
|
||||
}} catch (error) { fs.appendFileSync(path.join(out,'https-network-errors.log'),new Date().toISOString()+' '+String(error)+' '+String(error.cause?.stack || '')+'\n'); }
|
||||
}
|
||||
await new Promise(resolve=>setTimeout(resolve,500));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user