fix previous version

This commit is contained in:
garronej 2022-01-18 21:07:24 +01:00
parent f78526dfff
commit d5e690f964

View File

@ -49,7 +49,7 @@ export function main() {
const cnameFilePath = pathJoin(reactProjectDirPath, "public", "CNAME");
if (fs.existsSync(cnameFilePath)) {
return new URL(fs.readFileSync(cnameFilePath).toString("utf8").replace(/\s+$/, ""));
return new URL(`https://${fs.readFileSync(cnameFilePath).toString("utf8").replace(/\s+$/, "")}`);
}
return undefined;