Fix _next replacement

This commit is contained in:
Linhart Lukáš 2023-10-17 10:46:00 +02:00
parent 95190fa424
commit 8c101a8684

View File

@ -85,7 +85,7 @@ async function main() {
for (const file of files) { for (const file of files) {
if (file.endsWith('.html')) { if (file.endsWith('.html')) {
let content = await fs.readFile(`packages/bruno-electron/web/${file}`, 'utf8'); let content = await fs.readFile(`packages/bruno-electron/web/${file}`, 'utf8');
content = content.replace(/\/_next\//g, '/_next/'); content = content.replace(/\/_next\//g, '_next/');
await fs.writeFile(`packages/bruno-electron/web/${file}`, content); await fs.writeFile(`packages/bruno-electron/web/${file}`, content);
} }
} }