const fs = require('node:fs');
const prefixes = [ './', '../', '../../', '/'];
const suffixes = (new Array(6)).fill(1).map((a, i) => i + 1);
const paths = [];
prefixes.forEach((prefix) => {
paths.push(``);
suffixes.forEach((suffix) => {
paths.push(``);
});
});
const content = paths.join('');
const html = fs.readFileSync('../build/index.html', 'utf8');
const text = html.replace(/<\/title>/gim, `${content}`);
fs.writeFileSync('../build/index.html', text);